Day001 – Construction of the Python environment under Windows

1. Python download
1. The latest Python source code, binary files, news, etc. can be viewed on the Python official website:

2. Python official website: https://www .python.org/

3. You can download Python documentation at the link below, and you can download documentation in HTML, PDF, and PostScript formats.

4. Python document download address: https://www.python.org/doc/

2. Install Python on Window platform:
1. The following is on Window platform Simple steps to install Python on:

2, open the WEB browser to visit https://www.python.org/downloads/windows/

3, select Window in the download list Platform installation package, the package format is: python-XYZ.msi file, XYZ is the version number you want to install.

To use the installer python-XYZ.msi, the Windows system must support the use of Microsoft Installer 2.0. Just save the installation file to your local computer and run it to see if your machine supports MSI. Windows XP and later versions already have MSI, and many old machines can also install MSI.

4. After downloading, double-click the download package to enter the Python installation wizard. The installation is very simple. You only need to use the default settings and click “Next” until the installation is complete.

Three, set environment variables in Windows
1, add Python directory in environment variables:

2, in the command prompt box (cmd): enter path=%path%;C:\Python Press “Enter”.

Note: C:\Python is the installation directory of Python.

It can also be set in the following ways:

Right click on “Computer”, then click on “Properties” and then click on “Advanced System Settings” and select “System Variables” below the window “Path”, double-click it! Then in the “Path” line, just add the python installation path (my D:\Python32), so in the back, just add the path. ps: Remember, the path is directly separated by a semicolon “;”! After the final setting is successful, enter the command “python” on the cmd command line to display the relevant display.

Leave a Comment

Your email address will not be published.