打开cmd命令窗口,输入pip install selenium
安装成功之后会有提示,检查是否安装成功,可以进入python,导入selenium包,如果没有任何提示说明配置完成
C:\Users\Administrator>pip install selenium
Collecting selenium
Downloading selenium-3.141.0-py2.py3-none-any.whl (904 kB)
|████████████████████████████████| 904 kB 467 kB/s
Requirement already satisfied: urllib3 in d:\anacoda\lib\site-packages (from selenium) (1.25.9)
Installing collected packages: selenium
Successfully installed selenium-3.141.0
C:\Users\Administrator>python
Python 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import selenium
>>>