Install Python On Windows
Installing Python on Windows is as easy as installing normal software, just click "Next" after downloading the installation package.
Python installation package download address: https://www.python.org/downloads/
Open this link, you can see that there are two versions of Python, Python 3.x and Python 2.x, as shown in the following figure:
I It is recommended that beginners use Python 3.x directly. We will use this version as an example to demonstrate the Python installation process under Windows.
Click the version number in the above picture or the "Download" button to enter the download page of the corresponding version, and scroll to the end to see the Python installation package for each platform.

Explanation of prefixes:
-
Starting with
Windows x86-64
is the 64-bit Python installer.
-
Starting with
Windows x86
is the 32-bit Python installer.
Explanation of suffixes:
-
embeddable zip file
represents the green free installation version of .zip
format, which can be directly embedded (integrated) into other applications.
-
executable installer
means an executable program in .exe
format, which is a complete offline installation package, generally you can choose this.
-
web-based installer
means that it is installed over the network, that is to say, what is downloaded is an empty shell, and the real Python installation package needs to be downloaded online during the installation process.
Here we choose "Windows x86-64 executable installer", which is the complete offline installation package for 64-bit.
Double-click the downloaded python-3.8.1-amd64.exe to start installing Python, as shown in Figure.
Please check
Add Python 3.8 to PATH
if possible, so that the directory where the Python command tool is located can be added to the system Path environment variable, which will be very convenient to develop programs or run Python commands in the future.
Python supports two installation methods, default installation and custom installation:
-
The default installation will check all components and install them on the C drive.
-
Custom installation can manually select the components to install and install to other drive letters.
Here we choose a custom installation to install Python to a common directory to avoid too many files on the C drive. Click "Customize installation" to proceed to the next step and select the Python components to be installed.
If there are no special requirements, keep the default, that is, check all.
Click "Next" to continue and select the installation directory.
Select your commonly used installation directory, click "Install", and wait a few minutes to complete the installation.
After the installation is complete, open the Windows command prompt and enter the
python
command in the window (note that the letter
p
is lowercase). If the version information of Python appears and you see the command prompt
>>>
, the installation is successful, as shown in the following figure.
Running the python command starts the python interactive programming environment, we can enter code after
>>>
and see the execution result immediately.
Press the
Ctrl+Z
shortcut key, or enter the exit() command to exit the interactive programming environment and return to the Windows command line program.