Windows platform installs Python:
- Open a Web browser to access http://www.python.org/download/
- Select the Window platform installation package in the download list, in the package format:python-xyz.msi file, XYZ is the version number you want to install.
- To use setup python-xyz.msi, Windows systems must be supported with Microsoft Installer 2.0. Just save the installation file to your local computer, and then run it to see if your machine supports MSI. Windows XP and later versions already have MSI, and many older machines can also install MSI.
- After downloading, double-click the download package, go to the Python Installation Wizard, the installation is very simple, you just need to use the default settings always click "Next" until the installation is complete.
Setting environment variables in Windows
To add a Python directory to an environment variable:
in the Command Prompt box (cmd): Enter
Path=%path%; C:
Press "Enter".
Note: C:\Python is the installation directory for Python.
You can also set it in the following ways:
- Right-click on "Computer" and click "Properties"
- Then click "Advanced System Settings"
- Select "Path" under the "System Variables" window and double click!
- Then in the "path" line, add the Python installation path (my D:\Python32), so later, add the path. PS: Remember, the path is separated directly by a semicolon ";"
- After the final setting is successful, on the cmd command line, enter the command "Python" and you can have the relevant display.
Windows platform installs Python: