How To Install Python 3 On Windows 10
How To Install Python 3 On Windows 10
phoenixnap.com/kb/how-to-install-python-3-windows
April 2, 2019
Introduction
Python is a widely used high-level programming language first launched in 1991. Since
then, Python has been gaining popularity and is considered as one of the most popular
and flexible server-side programming languages.
Unlike most Linux distributions, Windows does not come with the Python programming
language by default. However, you can install Python on your Windows server or
local machine in just a few easy steps.
The version you need depends on what you want to do in Python. For example, if you are
working on a project coded in Python version 2.6, you probably need that version. If you
are starting a project from scratch, you have the freedom to choose.
1/8
If you are learning to code in Python, we recommend you download both the latest
version of Python 2 and 3. Working with Python 2 enables you to work on older
projects or test new projects for backward compatibility.
Note: If you are installing Python on a remote Windows server, log in via Remote
Desktop Protocol (RDP). Once you log in, the installation procedure is the same as for a
local Windows machine.
2/8
Note: If your Windows installation is a 32-bit system, you need the Windows x86
executable installer. If your Windows is a 64-bit version, you need to download the
Windows x86-64 executable installer. There is nothing to worry about if you
install the “wrong” version. You can uninstall one version of Python and install another.
1. Run the Python Installer once downloaded. (In this example, we have downloaded
Python 3.7.3.)
2. Make sure you select the Install launcher for all users and Add Python 3.7 to
PATH checkboxes. The latter places the interpreter in the execution path. For older
versions of Python that do not support the Add Python to Path checkbox, see Step 6.
For all recent versions of Python, the recommended installation options include Pip and
IDLE. Older versions might not include such additional features.
4. The next dialog will prompt you to select whether to Disable path length limit.
Choosing this option will allow Python to bypass the 260-character MAX_PATH limit.
Effectively, it will enable Python to use long path names.
3/8
The Disable path length limit option will not affect any other system settings.
Turning it on will resolve potential name length issues that may arise with Python
projects developed in Linux.
4/8
Note: You can also check whether the installation was successful by typing python –V
in Command Prompt. The output should display your installed version of Python. In
our case, it is “Python 3.7.3.”
We recommend using Pip for most Python packages, especially when working in virtual
environments.
5/8
Pip has not been installed yet if you get the following output:
If your version of Python is missing Pip, see our article How to Install Pip to Manage
Python Packages on Windows.
We recommend you go through this step if your version of the Python installer does not
include the Add Python to PATH checkbox or if you have not selected that option.
Setting up the Python path to system variables alleviates the need for using full paths. It
instructs Windows to look through all the PATH folders for “python” and find the install
folder that contains the python.exe file.
6/8
2. Type sysdm.cpl and click OK. This opens the System Properties window.
5. Click Edit.
6. Select the Variable value field. Add the path to the python.exe file preceded with a
semicolon (;). For example, in the image below, we have added “;C:\Python34.”
Instead of this:
C:/Python34/Python
script.py
You have Python, and you have Pip to manage packages. Now, you need one last
software package – virtualnv. Virtualnv enables you to create isolated local virtual
environments for your Python projects.
To install virtualnv:
7/8
1. Open the Start menu and type “cmd.”
Conclusion
In this tutorial, we detailed how to install Python 3.7.3 on Windows. If you are
installing a different version of Python, you can expect a similar process.
Remember, choose your version carefully, make sure that you have Pip installed, and use
virtual environments when developing multiple projects on a single system.
Happy coding!
8/8