Python 3, an Illustrated Tour Transcripts
Chapter: Welcome to the course
Lecture: Installing Python on Windows

Login or purchase this course to watch this video and the rest of the course contents.
0:01 In this screencast, we're going to look at how to install Python 3 on Windows 10. Typically, when I use Python in Windows,
0:08 I like to make sure that I understand how to use the prompt. So in order to launch the prompt you're going to go down to the bottom of your taskbar
0:16 and where it says type here to search you can just type CMD and then we'll pull up command prompt and you can run that.
0:22 Now, you'll note here that when I type Python it currently says the Python is not installed, so we want to remedy that.
0:28 Let's go to the Python website and download Python 3. We're at the Python website and you can see if you scroll down a little bit
0:36 that there is a download link. We're going to click Python 3.6.4 which is the current version at the time of this recording, you'll want to use
0:45 whatever Python 3 version is listed there below. Inside of here, you'll see a bunch of things listing peps and whatnot
0:54 and you can scroll down and we'll get the files here at the bottom. And typically, you'll probably want to either install
1:01 a Windows 64-bit or Windows 32-bit, I am going to do a window 64-bit. That should work on most modern machines.
1:10 There's a couple of different versions here. There's what they call an embeddable zip file.
1:14 There's an executable installer and there's a web-based installer. I'm going to download the executable installer.
1:20 So just click on that and download it. This will download for a minute. After that's downloaded, you'll see that there's a file here
1:27 called Python 3.6.4 AMD we'll just double click on that and that should install Python for us. Now, this is where you want to be careful.
1:35 You'll see that there are various ways to install it and one thing that you need to make sure is that you click this add Python 3.6 to path.
1:42 If you don't click that, when I type Python at the command prompt, it won't find it. So I'm going to click that.
1:48 I'm also going to choose customized installation note that the normal installation is going to put it in this
1:52 C:\Users\matt\AppData\Local\Pograms\Python\Python36 directory and I'm just going to say customize and I'm going to install for all users.
2:01 So it will put it in the C:\Program Files\Python36 it's going to ask if I want to install it, I'll say yes,
2:13 it will think for a little bit and install Python. Okay, it looks like it's installed. I'm just going to close this. Let's go back to our prompt here.
2:27 Remember type CMD down there and let's type Python. You can see that after I type Python it's now put me in the Python interpreter
2:34 where I can execute Python code,
2:36 to get out of this, I type quit and that will put me back into the prompt. 02:39 Note that I can also do things such as type Python -m idlelib.idle
2:46 and it will launch idle, this is a Python editor that comes with Python. Note that a couple other things that it will do
2:55 is that if you scroll down here you'll see that there is a Python directory here and you can click on this idle here to launch idle,
3:05 which will launch idle that way, alternatively you can launch Python by clicking this as well. This will open a command prompt with Python,
3:17 but I really prefer just to go down here and type CMD to launch Python here and note that we'll talk about virtual environments.
3:27 When I launch Idle from the launcher here, we're using the system idle and when we start using virtual environments we'll probably want to launch idle
3:36 or other programs from our virtual environment. So rather than launch it from there, I prefer using this Python -m idlelib.idle to launch idle.
3:47 Great, hopefully after you've done this you've been able to get Python on your Windows 10 machine working.


Talk Python's Mastodon Michael Kennedy's Mastodon