How to install Python on Windows 10

Installing Python on windows 10 is very easy. You need to involves just four steps:
1. Download the binaries (here Python latest version)
2. Run the executable installer
3. Add Python to PATH environmental variables
4. Verify the Python installation

Go to the official Python executable installer https://www.python.org/downloads/. Download the binaries, run and complete the installation steps. Finally you can start developing Python apps on your Windows 10 system.

 

Step 1: Download the Python Installer binaries

  1. Go to the official Python web in your browser. Navigate to Downloads menu, choose ‘Windows’ sub menu.
  2. Choose the latest Python 3 release (example i’m using Python 3.9.1)
  3. Click link and download Windows x86 executable insataller if your system using 32-bit installer. If your system using 64-bit system, download python for Windows x86-64 executable installer.

 

Step 2: Run the Executable Installer

  1. After download the Python installer binaries, run it
  2. Check the Install launcher for all users check box.
  3. Also check the Add Python 3.9 to PATH check box to include the interpreter in the execution path
  4. Select Install Now or Select Customize installation
    if you select Customize installation, choose the optional features by checking the following check box :

    1. Documentation
    2. pip
    3. tcl/tk and IDLE (to install tkinter and the IDLE development environment)
    4. Python test suite (to install the standard library test suite Python)
    5. py launcher (to install the global ‘py’ launcher to make it easier to start Python)
    6. for all users


    Click Next

  5. This is Advance Options, select the Install for all users and Add Python to environment variables check boxes.

    Optionally, you can select the Asscociate files with Python, Create shortcuts for installed applications and other advanced options.

    Costumize the Python installation directory and note it, you would need it for the next step.

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

  6. when the installation process is complete, you will see a Python Setup Successful windows.

 

Step 3: Add Python to environmental variables

The last (optional) step in the installation process is add Python Path to the System Environment varibales. But This step is done, you have added Python to environment variables while setting in the Advance options during the installation procedure (Step 2 Point 5). You can skipp this step. Else, this step is done manually as follows :

  1. Click start menu, search for “View advanced system settings”. Select it
  2. In the “System Properties” windows, click on the “Advanced” tab, then click on the “Environment Variables” button.

    Locate the Python installation directory on your system.if you follow exactly like the steps above, python will be installed in below locations:

    C:\Users\..\AppData\Local\Programs\Python (in my pc)

    But, mostly in :
    for 32-bit installation

    C:\Program Files (x86)\Python39-xx

    for 64-bit installation

    C:\Program Files\Python39-xx

    The folder name and location may be different from “pyhton39-xx” if you installed a different version and different location.

    Append the following entries to PATH variable as follows :

 

Step 4: Verify the Python Installation

Now you have successfully installed python 3.9.1 on Windows 10. You can verify if Python installation is successful or not through the command line (CMD) or the IDLE app.

Search for the command prompt and type “python”. You can see that Python 3.9.1 is successfully installed on windows 10.

An alternate way to verify is to use IDLE (Python 3.9 64 bit). You can start coding in Python using the Integrated Development Environment (IDLE).

Yeay!! you are ready to start developing Python apps in your Windows 10 system.

By the way you can also use PYCHARM for start coding. PyCharm is a dedicated Python Integrated Development Environment (IDE) providing a wide range of essential tools for Python developers, tightly integrated to create a convenient environment for productive Python, web, and data science development.