// Tutorial //

How to Install Python on Windows 10

Published on August 3, 2022
Default avatar
By Meghna Gangwar
Developer and author at DigitalOcean.
How to Install Python on Windows 10

While we believe that this content benefits our community, we have not yet thoroughly reviewed it. If you have any suggestions for improvements, please let us know by clicking the “report an issue“ button at the bottom of the tutorial.

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. 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. Customize Installation4. Select Customize installation. Choose the optional features by checking the following check boxes:

  3. Documentation

  4. pip

  5. tcl/tk and IDLE (to install tkinter and IDLE)

  6. Python test suite (to install the standard library test suite of Python)

  7. Install the global launcher for `.py` files. This makes it easier to start Python

  8. Install for all users.

Python Windows 10 Optional Features Click Next.8. 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. Python Installer Advanced Options10. Once the installation is over, you will see a Python Setup Successful window. 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.


Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in our Questions & Answers section, find tutorials and tools that will help you grow as a developer and scale your project or business, and subscribe to topics of interest.

Sign up
About the authors
Default avatar
Developer and author at DigitalOcean.

Still looking for an answer?

Was this helpful?

Thank you so much…l almost lost my mind, but thanks to the video, l have everything up and running. Thanks once again

- Candace

    Thanks well explained

    - sara

      Also appreciated these instructions for installation! How do I start the “TKinter” GUI that’s included in the Python distribution pls?

      - Max Hugen

        Thanks a bunch buddy, your instructions helped me in installing Python. Keep up the good work!

        - Pradyuman

          Thank you a lot. You have no idea how much you helped me find my path as I begin my new life with python. Whoever you are: I am highly indebted to you.

          - Nusaybah

            Thank you very much for this.

            - Emeka

              Thank you so much for the very nice and easy step by step python installation guide

              - savita

                Thank you so much, really helpful

                - swarupa

                  Yes, thanks so much for these instructions. Well written, good choice of graphics of dialogue boxes that pop up during install, nice discussion of path and environmental variables.

                  - Carol

                    Was really helpful in installing python as a first time user, I was able to easily install with this help.

                    - Pratheeksha Naresh