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!
The pywin32 tool will install pip for us:
https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/
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!