installation of Python
1. Go to Python's website (https://www.python.org/downloads/)
2. Point downloads------>windows (here is the system to choose your computer, now the majority of computers are all Windows systems, I use Windows system example)
2. After entering we will see two versions of Python, according to their own needs to choose, because now are learning Python3 version, I have 3 version of the example, Python3 is Python2 upgrade, but they are relatively large span.
Download the Python version on the Python website, download the corresponding version (see whether you are a 32-bit or 64-bit operating system in the computer-properties), and I am 32-bit, and download the corresponding 32-bit installation package (for example: Windows x86 executable Installer
3.python download can also download the zip version (Windows x86 embeddable zip file), but after downloading sometimes found that there will be a lot of DLL file loss situation, but also need to fix these problems, it will be more troublesome, so it is recommended to download Windows x86 executable installer version.
4. After the download is complete, double-click the EXE program to download the installation interface. Installation interface can choose the default installation, you can also customize the installation, I prefer to customize the installation, the default installation path is relatively deep, custom installation of their own definition of a lighter directory, follow-up easy to find.
5. When selecting the path to install, you can put the "add Python 3.6 Topath" tick on the bottom, this will directly default to add the user variables, follow-up without adding.
6. Select OK, continue to the next step, all the default selection, if necessary to change, and then the next step directly update the path of the installation store.
7. Continue to the next step, prompting for successful installation. You can also see information about this in the installation directory.
8. After the installation is complete, follow
9. Next we can execute the installer path \ Full application name in CMD to see if the installation was successful, as follows
Attention
1) The file address must be separated from the application with "\"
2) If we're going to open a Python application, you can do that,
My 1.py program here is an empty program, which simply adds the program path to be executed on the original basis. What I'm going to say is that every time we call Python.exe, it's a lot of trouble, so we need to set the environment variable so that we can call the application later, just write the name of the application.
Environment Variables
This is based on the WINDOWS10 system, with the windows7,8 system on the computer--and the advanced system settings, separated by semicolons when adding paths in path.
1. First we have to go to the Control Panel, find the system, click in to select Advanced system settings
2. Enter the advanced system settings and we will see the environment variables as
3. Enter the environment variable with user variables and system variables two boxes, we can find the path in these two boxes, our application path will be added here (this is the WINDOWS10 system)
4. Specify the path to the Python application in the user variables and system variables
System variables
User variables
Note: We have to specify a new path.
5. We can then enter Python in Cmd to invoke the Python application.
Enter this, must be the name of the application.
Python--------Installation and environment variables