Install Python on Windows 10

Follow the steps below to install Python, pip, and virtualenv on windows 10:

Installing Python

  1. Go to the official site of Python and download the latest version of Python. At the time of writing this tutorial, the latest stable version of Python was 3.9.0. On the Python download page, choose the download link for Windows x32-64 executable installer as shown in the image below:
  2. How to install Python on Windows
  3. After the download is complete, run the Python installer.
  4. Select Install launcher for all users and Add Python3.9 to Path checkboxes.
  5. Next, select Install Now - this is the recommended option and it will also install Pip. Pip is a package management utility tool that simplifies installation and management of software packages from Python Package Index (PyPI) and other package indexes.
  6. The next window will prompt you to whether Disable path length limit. If you select to disable this option, it will allow Python to bypass the 260 character MAX_PATH limitation. I would recommended you to select this option.

  7. Next, close the window.

  8. After the installation is complete, open the Windows command prompt and execute the following command to verify the installation of Python:
        python --version

    You must see the currently installed version of Python in the terminal as shown below:

  10. Next, verify the installation of Pip by executing the following command in the Windows command prompt:
        pip3 --version

    You must see it's version on the terminal if it is installed on your system.

Installing Virtual Environment

A Python Virtual Environment is a tool that helps to create an isolated environment for a project.

  1. In your Windows command shell prompt, execute the following command to install the Virtual Environment:
        pip3 install virtualenv
  3. Next, open the Windows command prompt and execute the following command to verify if the virtualenv is installed:
        virtualenv --version

    If you see its version, then it is installed on your system.