How to install selenium in python environment and manually download and install selenium

Method 1: In the cmd environment, use pip install selenium 

 can be slow

 

 

 Method 2: Download the selenium installation package and install it manually 

Download address: https://pypi.org/project/selenium/

 Select the source package with the extension gz to download

After downloading, unzip it, and enter the cmd environment into the directory where the setup.py file is located.

 

 

Run the python setup.py install command to install

 

 

 

After installation, use pip list to see the information of selenium

 

At this point, you can use import selenium to import the selenium package

 

Guess you like

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