First contact with python--how to configure and install the python2.7 environment (including pip configuration)

 
First download the python2,7 installation package: https://www.python.org/downloads/windows/
When installing, it is best to put it in the root directory of the c drive:
Always thinking about the next step, confirm the path as follows, and continue to the next step until the end
Configure environment variables:
Click My Computer - "Properties -" Advanced System Configuration - "Click Environment Variables:
Copy the installation directory directly:
 
It is recommended to put this line of configuration on the first line. I put it on the last line here. If it affects the operation, please try it on the first line:
To the command line detection: enter python
Successful installation!
 
Note: 32-bit computer choose 32-bit, 64-bit choose 64-bit, I choose pywin32-220.win-amd64-py2.7.exe
When installing, just go to the next step. Be careful not to start python during this process, otherwise an error will be reported:
Configure the environment variables again:
First check if there is pip in the python27/script directory
Copy the script path and configure environment variables
To the command line to detect: enter the pip install selenium command
 
Successful installation!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325065859&siteId=291194637