Javascript required
Skip to content Skip to sidebar Skip to footer

How to Install and Run Python on Windows

Installing and using Python on Windows 10 is very simple. The installation procedure involves just three steps:

  1. Download the binaries
  2. Run the Executable installer
  3. Add Python to PATH environmental variables

To install Python, you need to download the official Python executable installer. Next, you need to run this installer and complete the installation steps. Finally, you can configure the PATH variable to use python from the command line.

You can choose the version of Python you wish to install. It is recommended to install the latest version of Python, which is 3.7.3 at the time of writing this article.

Step 1: Download the Python Installer binaries

  1. Open the official Python website in your web browser. Navigate to the Downloads tab for Windows.
  2. Choose the latest Python 3 release. In our example, we choose the latest Python 3.7.3 version.
  3. Click on the link to download Windows x86 executable installer if you are using a 32-bit installer. In case your Windows installation is a 64-bit system, then download Windows x86-64 executable installer.
  4. Download Python Installer

Step 2: Run the Executable Installer

  1. Once the installer is downloaded, run the Python installer.
  2. Check the Install launcher for all users check box. Further, you may check the Add Python 3.7 to path check box to include the interpreter in the execution path.
  3. Customize Installation

  4. Select Customize installation.
  5. Choose the optional features by checking the following check boxes:

    1. Documentation
    2. pip
    3. tcl/tk and IDLE (to install tkinter and IDLE)
    4. Python test suite (to install the standard library test suite of Python)
    5. Install the global launcher for `.py` files. This makes it easier to start Python
    6. Install for all users.

    Python Windows 10 Optional Features

    Click Next.

  6. This takes you to Advanced Options available while installing Python. Here, select the Install for all users and Add Python to environment variables check boxes.

    Optionally, you can select the Associate files with Python, Create shortcuts for installed applications and other advanced options. Make note of the python installation directory displayed in this step. You would need it for the next step.

    After selecting the Advanced options, click Install to start installation.

  7. Python Installer Advanced Options

  8. Once the installation is over, you will see a Python Setup Successful window.
  9. Python Windows 10 Setup Successful

Step 3: Add Python to environmental variables

The last (optional) step in the installation process is to add Python Path to the System Environment variables. This step is done to access Python through the command line. In case you have added Python to environment variables while setting the Advanced options during the installation procedure, you can avoid this step. Else, this step is done manually as follows.

In the Start menu, search for "advanced system settings". Select "View advanced system settings". In the "System Properties" window, click on the "Advanced" tab and then click on the "Environment Variables" button.

Locate the Python installation directory on your system. If you followed the steps exactly as above, python will be installed in below locations:

  • C:\Program Files (x86)\Python37-32: for 32-bit installation
  • C:\Program Files\Python37-32: for 64-bit installation

The folder name may be different from "Python37-32" if you installed a different version. Look for a folder whose name starts with Python.

Append the following entries to PATH variable as shown below:

Adding Python Environmental variable To Path

Config Envvar New

Step 4: Verify the Python Installation

You have now successfully installed Python 3.7.3 on Windows 10. You can verify if the Python installation is successful either through the command line or through the IDLE app that gets installed along with the installation.

Search for the command prompt and type "python". You can see that Python 3.7.3 is successfully installed.

Verify if Python is installed through the Command prompt

An alternate way to reach python is to search for "Python" in the start menu and clicking on IDLE (Python 3.7 64-bit). You can start coding in Python using the Integrated Development Environment(IDLE).

Verify if Python is installed using IDLE app

Hurray! You are ready to start developing Python applications in your Windows 10 system.

How to Install and Run Python on Windows

Source: https://www.journaldev.com/30076/install-python-windows-10