Python is one of the most versatile programming languages you can learn. Capable of everything from back end web programming to database interaction to game development, Python will allow you to do anything with its easy-to-learn syntax. Before you start to use Python, you’ll have to install it– and this step-by-step Python installation tutorial will show you how!

To complete this tutorial, you will need:
-A Windows computer.
-Administrator access.
-Windows vista or later.

Before You Start
Note that there are two steps you will need to complete to get up and running with python on your windows machine.
1. Install the python program on your computer.
2. Add your python installation to the system path.
The installation of python is completed using the python installer, however depending on your configuration, you may need to add your python installation to the system path manually after running the python installer.

Running the Python Installer

1. To install the python program on your computer, you can use the python windows installer, available at https://www.python.org/. At the top of the screen, you should see several menu options. Go ahead and click Downloads:

The python site should detect your system configuration automatically and should display two options, one for python 2, and another for python 3. Note that these are the latest versions of python so the version numbers in the picture may be different than the version numbers used here.

2. Click the download button for python 3. This will initiate the download.

3. Once the download is finished, a dialogue should come up asking if you want to run the installer. This may look different depending on which browser and/or version of windows you are using. When this dialogue comes up, select run. If the following dialogue doesn’t show up automatically, find the downloaded installer in your file system (usually, this is in the ‘downloads’ folder) and double click it.

4. When you run the installer, a new dialogue will come up. Depending on your configuration, there may be a checkbox allowing you to add python to your system path. If this checkbox is available, go ahead and check it. If this check box is not available, don’t worry. I will cover how to add the python installation to the system path manually in just a bit.

5. Select custom installation.

 

6. Go ahead and click next until you arrive at a dialogue with a text field that says something like “customize install location”.

7. For most applications, the installation location doesn’t matter. For python however, you may need to reference the install location, so making the installation directory simple, easy to find, and easy to remember can be very helpful. In the “customize install location” field enter in ‘C:/python3’

This will specify the base directory of the windows filesystem as the install location for python.

8. Go ahead and click install. You may need to click next one or more times, and you may need to enter in your password or verify that you would like to make changes.

9. When the installation process is finished, you should see a window indicating that the installation was successful. At this point, python should be installed on your computer. You can go ahead and close this window.

CHECKING IF THE PYTHON INSTALLATION WAS ADDED TO THE SYSTEM PATH

1. Open the command prompt program on your computer. Command prompt is the windows command line interface and comes with every installation of windows. If command prompt was previously open, close command prompt and open it again before continuing.

2. Type the word python into the command prompt and press enter. If your program was installed successfully and was added to the system path, you should see a new prompt with “>>” characters like this:

If your python installation was not added to the system path, you should see a message that says that the python command is not recognized:

If you see a message indicating that the python command is not recognized, go ahead and follow the instructions to add the python installation to the system path manually.

 

ADDING YOUR PYTHON INSTALLATION TO THE SYSTEM PATH MANUALLY

1. Open up the control panel on your computer. Click view by and select small or large icons. Select the system icon.

2. Select advanced system settings from the side panel.

3. Select the advanced tab at the top of the window. Click the environment variables button at the bottom of the screen.

4. In the environment variables section, select PATH and click edit.

5. Click new. In the new field that shows up, type the custom location that you set for your python installation which should be ‘C:/python3’.

6. Click ok. At this point, you have added python to the system path. Go ahead and follow the previous instructions to verify that the python installation is added to the path variable.

Go write some code.  You have completed the Python Installation tutorial!

One thought on “Python Installation Tutorial (Windows)

Leave a Reply

Your email address will not be published. Required fields are marked *