How to Install Pygame (Windows 8/10)
Skills:
AI Pair Programming60%
Key Takeaways
Installs Pygame module using pip in Windows 8/10
Full Transcript
hey guys welcome back to another YouTube video today's video I'm gonna be showing you how to install PI game for Python on Windows so this is Windows 10 right now this will work in Windows 8 but if you're using an earlier version of Windows so Windows 7 or Windows XP you're gonna have to find a different tutorial for this because some of the things I do aren't going to work in that version ok so let's get started right away the first thing you need to do if we haven't done so already is download Python so I assume most of you already have Python downloaded but if you don't just go ahead and head over to the Python website slash downloads and then download Python 3 point 6 point 3 or whatever the latest version is when you're doing this tutorial so I'm just going to go ahead and click on this and we'll go through it here so now that this is loaded up if you haven't already installed Python you're just going to want to make sure you click on this check button here it says add pipes on 3.62 path now this is really important and this is gonna save you a lot of time later on if you do this if you add to the path ok otherwise if when you installed it you didn't add to the path I'm gonna show you guys how you can edit the path and you can add it in so you're gonna be able to do what I show you next okay so I actually already have this installed so I'm not gonna install it here but if you don't then just go ahead and click install now it's very simple you can go through the process okay so now that we've done that I'm gonna show you how we can install pieing so the first thing we're gonna want to do is open up our command prompt so this is our first test just to see if this works and if this doesn't work then I'll show you the next step later so we're just gonna start by typing pip soapy IP now you should see something like this come up if you don't don't worry just wait a little bit later I'm gonna show you how we can get this to work so if this didn't work for you you might get some an error that says pip is not a recognized command on Windows or something like that and I'll show you how we can how we can fix that so now if this worked for you well you get all you have to do now to install a PI game is pip install PI game just like this and pip is pretty much package installer for Python and it's built into Python if you added that to the path so if you do that pip install PI game then it should start collecting everything and installing it so here we go it says it installed PI game correctly so now I'm just gonna uninstall just so I can show everyone else how to do it properly okay so if that didn't work for you don't worry if it did work for you can just click off the video now and it should everything should be working in PI game alright so now let's say that didn't work that pretty much just means that the path for Python is actually not in your environmental variables so what we need to do is we need to get to those environmental variables so a way to do that is to just simply go to control panel so we can just search that in the bottom here control panel load that up here and we're gonna click on system and security we're gonna click on system again and then advanced system settings on the left side here and now once that comes up you should be on the Advanced tab and you're gonna click on environmental variables right here all right so now we're gonna scroll down until you see something that says path so here you can see if I drag my window boat mine's pretty long that's just because I have three different paths now yours is probably only gonna have one thing in it it's probably just gonna have this Windows apps path it's not gonna have the python path if that other thing didn't work for you so now we want to change this because we want to add something to this path so you're gonna click on edit and it's gonna come up and it's going to show you these three different paths right here now you may have one you may not have any so let's say you don't have any of them here then what you need to do is you need to make a new path by just clicking on new and simply calling it path like that and then you can type in the directory which I will show you in this next step okay so say we have this path already we click Edit and now you have one thing in here what we need to do is we need to add the location of where your Python is saved on your computer so you should know where it's saved this is the default location where I have it so in opt out of local programs Python and then Python 36 that's where my python is saved if you don't know where yours is you can just go to Windows Explorer here and just search throughout your whole C Drive for it it might take a second depending on how fast your drive is you search Python like that and just wait for it to load up it is gonna take a minute but it will show you where the Python directory is so you can type that into the path like that all right so now that we know where our Python directory is all we have to do is click new and then you can simply type it in so for example I already have mine here but you do see drive slash users slash and then so on filling in your Python path so that it should end like this with Python and then python 36 so I'm just gonna delete that one cuz I don't need that alright so once you've done that now you're gonna type the exact same path again so you're gonna click new and you're gonna do the exact same path you just typed in which would be this one here except you're gonna do slash scripts and then another slash at the end so this is just so that we can use the Python package installer and you have access to Python so you have two different paths which are gonna be in your command prompt okay so again I'll just go over that quickly because we weren't kind of fast all you need to do is find the location of your Python so the directory on your C Drive D Drive wherever it is type that in so you just click new like that and type it here and then you're gonna do the exact same path except you're just gonna add scripts to the end and you're gonna hit new again when you do that so you have two separate paths and they should look something like the two I have up here right now once you've done that you're gonna click OK and ok again at the bottom and now we're gonna go back to our command prompt to make sure that this all works so now you go to command prompt and we'll do the exact same steps I showed before you just type pip install pygame like so it should grab it and install it and it doesn't take very long just like that now if you want to verify that your thing is actually working your PI game is working you can go ahead and open up IDL e which is Python which you just installed wait for that to load up so I got mine over here and then all you have to do is just type import PI game like so and if you don't get an error message that means everything's working and you successfully installed PI game alright so that has been this video for today I know a lot of people have been having trouble installing PI game they think they have to go to the website to download the wheel file you may have to do that but if you followed everything I did in this tutorial it should work for you and if you're having trouble adding the things to the path you can always just reinstall Python and click Add to path and it'll do it automatically for you so you don't have to go through that whole process alright so if you liked the video and it helped you out please leave a like and subscribe and I will see you again in another
Original Description
In this video I explain how to install pygame, the python module, in windows 8 or 10. This is fairly simple and should not take you more than 5 minutes to complete. A lot of people think that in order to install pygame you must download the .whl file from there website. This is incorrect. Python by default comes with something called pip (package installer python), that will help you install it much easier.
⭐ Kite is a free AI-powered coding assistant for Python that will help you code smarter and faster. Integrates with Atom, PyCharm, VS Code, Sublime, Vim, and Spyder. I've been using Kite for 6 months and I love it! https://kite.com/download/?utm_medium=referral&utm_source=youtube&utm_campaign=techwithtim&utm_content=description-only
Please Like and Subscribe for more content!
**************************************************************
One-Time Donations: https://goo.gl/pbCE9J
Support the Channel: https://www.patreon.com/techwithtim
Twitter: https://twitter.com/TechWithTimm
Join my discord server: https://discord.gg/pr2k55t
**************************************************************
Python Webiste: https://www.python.org/
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Tech With Tim · Tech With Tim · 29 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
▶
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
A* Path Finding Algorithm(Visualization)
Tech With Tim
Python Programming Tutorial #1 - Variables and Data Types
Tech With Tim
Python Programming Tutorial #2 - Basic Operators and Input
Tech With Tim
Python Programming Tutorial #3 - Conditions
Tech With Tim
Python Programming Tutorial #4 - IF/ELIF/ELSE
Tech With Tim
Python Programming Tutorial #5 - Chained Conditionals and Nested Statements
Tech With Tim
Python Programming Tutorial #6 - For Loops
Tech With Tim
Python Programming Tutorial #7 - While Loops
Tech With Tim
Python Programming Tutorial #8 - Lists and Tuples
Tech With Tim
Python Programming Tutorial #9 - Iteration by Item (For Loops Continued...)
Tech With Tim
Python Programming Tutorial #10 - String Methods
Tech With Tim
How to Overclock a NVIDIA GPU
Tech With Tim
Python Programming Tutorial #11 - Slice Operator
Tech With Tim
Python Programming Tutorial #12 - Functions
Tech With Tim
Python Programming Tutorial #13 - How to Read a Text File
Tech With Tim
Python Programming Tutorial #14 - Writing to a Text File
Tech With Tim
Python Programming Tutorial #15 - Using .count() and .find()
Tech With Tim
Python Programming Tutorial #16 - Introduction to Modular Programming
Tech With Tim
Python Programming Tutorial #17 - Optional Parameters
Tech With Tim
Python Programming Tutorial #18 - Try and Except (Python Error Handling)
Tech With Tim
Python Programming Tutorial #19 - Global vs Local Variables
Tech With Tim
Python Programming Tutorial #20 - Classes and Objects
Tech With Tim
Cool VBS Script to Prank Your Friends!
Tech With Tim
How to Overclock an AMD GPU
Tech With Tim
Best GPU'S For Mining Ethereum (2018)
Tech With Tim
Recursion and Memoization Tutorial Python
Tech With Tim
Ethereum Mining Rig - Hardware Guide
Tech With Tim
Pygame Tutorial #1 - Basic Movement and Key Presses
Tech With Tim
How to Install Pygame (Windows 8/10)
Tech With Tim
How to Trade Your Cryptocurrency (Bitcoin, Ethereum etc.) For Cash!
Tech With Tim
How to Mine Ethereum 2018 - WORKING (Super-Easy)
Tech With Tim
Microphone Comparison - $10 Mic vs $150 Mic (Blue Yeti USB)
Tech With Tim
Pygame Tutorial #2 - Jumping and Boundaries
Tech With Tim
Pygame Tutorial #3 - Character Animation & Sprites
Tech With Tim
Pygame Tutorial #4 - Optimization & OOP
Tech With Tim
OBS Studio Tutorial - Best OBS Settings
Tech With Tim
Linear Search Algorithm - Python Example and Code
Tech With Tim
Make Any Mic Sound AMAZING! (WITH OBS)
Tech With Tim
Binary Search Algorithm - Python Example & Code
Tech With Tim
Pygame Tutorial #5 - Projectiles
Tech With Tim
Pygame Game - Mini Golf
Tech With Tim
Pygame Tutorial - Projectile Motion (Part 1)
Tech With Tim
Pygame Tutorial - Projectile Motion (Part 2)
Tech With Tim
Pygame Tutorial #6 - Enemies
Tech With Tim
Pygame Tutorial #7 - Collision and Hit Boxes
Tech With Tim
Pygame Tutorial #8 - Scoring and Health Bars
Tech With Tim
Cloud Mining vs. Hardware Mining - 2018
Tech With Tim
How to Install Pygame on Mac OSX (Fast-Simple)
Tech With Tim
Pygame Tutorial #9 - Sound Effects, Music & More Collision
Tech With Tim
Pygame Tutorial #10 - Finishing Touches & Next Steps
Tech With Tim
How to Fade Your Screen in Pygame [CODE IN DESCRIPTION]
Tech With Tim
How to Create a Button in Pygame [CODE IN DESCRIPTION]
Tech With Tim
Pygame Side-Scroller Tutorial #1 - Scrolling Background/Character Movement
Tech With Tim
Pygame Side-Scroller Tutorial #2 - Random Object Generation
Tech With Tim
Pygame Side-Scroller Tutorial #3 - Collision
Tech With Tim
Pygame Side-Scroller Tutorial #4 - Scoring and End Screen
Tech With Tim
How to Create A Message Box in Python - Tkinter
Tech With Tim
Is Ethereum Mining Still Profitable - Is It Worth It (April 2018)
Tech With Tim
How to Run MAC OSX on a WINDOWS PC (Clover Boot-loader)
Tech With Tim
Programming Problem #1 - Alphabet Soup (Beginner/Novice)
Tech With Tim
More on: AI Pair Programming
View skill →Related Reads
📰
📰
📰
📰
Building an AI-Powered Inshorts Clone using Vanilla JavaScript, MVC Architecture and Groq AI
Medium · AI
Presentation: From OTEL to SLMs: Distilling Frontier Model Behaviour from Production Telemetry
InfoQ AI/ML
Turning pet photos into oil portraits without losing the pet's actual face (FLUX.2 [pro] edit, not a LoRA)
Dev.to AI
Soul in Motion — 6:27 PM | 2026-07-17
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI