Install Python on Windows 10/11
To install Python on Windows, do the following:
- Go to the official site of Python and download the latest stable version of Python. At the time of writing this tutorial, the latest stable version of Python was 3.12. On the Python download page, choose the download link for Windows installer (64-bit) as shown in the image below:
- After the download is complete, run the Python installer.
- Select both Use admin privileges when installing py.exe and Add python.exe to PATH checkboxes.
- Next, choose 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.
- After the installation is complete, close the window.
- Open a Windows command prompt and execute the following command to verify the installation of Python:
- Next, verify the installation of Pip by executing the following command in the Windows command prompt:
If you are installing older versions of Python, you will be prompted to disable the path length limit. If you choose to disable this option, it will allow Python to bypass the 260-character MAX_PATH limitation. I would recommend selecting this option.
python --version
You must see the currently installed version of Python in the terminal as shown below:
Python 3.12.0
pip --version
You must see it's version on the terminal if it is installed on your system.