Here are some resources for more information about topics covered in this lesson:
Setting Up Python on Windows
00:00 In this video, you’ll learn how to set up Python on Windows. You’ll learn where to download Python, how to install Python, and how to open the Integrated Development and Learning Environment, also known as IDLE.
00:27 The Windows App Store version of Python is excellent for students and educational purposes, but it has some limitations that the python.org distribution doesn’t. In this course, you’ll download the official Python distribution from python.org.
On the first screen of the installer, you can see that you’re installing Python 3.9.5 or whichever version you downloaded. There’s an Install Now button, which will install Python as well as IDLE,
pip, and Python’s documentation.
There’s a Customize installation button you can use to choose the location of the install and select or de-select different features. There’s an option to install the launcher for all users, which is recommended and we’ll keep checked in this course, as well as an option to add Python 3.9 to
PATH is an environment variable on Windows that tells the command line where to look for files and folders. Now, if you don’t know what an environment variable or the command line is, that’s fine.
The key takeaway is that
PATH tells the operating system where to look for things when you issue commands. Adding Python to your
PATH allows you to use the
python command in a terminal to run Python programs. Again, if this doesn’t make sense to you, that’s fine.
If you need multiple versions of Python installed on the same computer, then it’s best to not add Python to
PATH. In either case, you can use the Python Launcher for Windows to run Python programs instead of the
In this course, we’ll be using the Integrated Development and Learning Environment, or IDLE, instead of the
python command. If you’d like more information on the Python Launcher for Windows, then check out the resources in the description of this video. In this course, it’s assumed that you’re installing Python for the first time and will only have one version of Python installed on your computer.
04:17 Once Python finishes installing, you’ll see a screen saying that Setup was successful. This screen includes links to the official online tutorial and the Python documentation, as well as an option to disable the path length limit.
Let’s pause for a moment and talk about what that is and whether or not you should disable it. So, what is this
MAX_PATH limitation and should you remove it? On older versions of Windows, file paths were limited to 260 characters.
The file path is a text representation of where a file or folder is located on Windows. It usually starts with
C: then a backslash and a list of folders containing the file. On the latest versions of Windows, the 260 character limit can be expanded to about 32,000 characters.
05:05 But you should only remove the limitation if you know for sure you’ll need it, because doing so will alter your computer’s configuration. In this course, it’s assumed you do not need to remove the limit, so we won’t be selecting that option. All right, let’s get back to the install.
05:21 Since we aren’t going to disable path length limit, we’ll go ahead and click the Close button. All right. So now you have Python installed, but how do you access it? In this course, we’ll be using Python’s Integrated Development and Learning Environment, IDLE, to interact with Python. There are two ways to open IDLE.
05:42 One is through the Start menu. The other is through the Windows search bar. To open IDLE from the Start menu, click on the Start menu icon and then scroll down until you find the Python 3.9 folder.
05:55 Since you just installed Python, you might be able to find IDLE in the Recently added section at the top of your Start menu, but let’s see where it’s located in case you don’t have that available.
06:24 This opens the IDLE shell. At the top of the window, you can see the version of Python running as well as some information about your operating system. Below that information are three red right angle brackets.
Become a Member to join the conversation.