安装selenium
你可以使用 pip 命令来安装 Selenium:
pip install selenium
安装过程类似下面这样。
[root@localhost src]# pip install selenium
Collecting selenium
Downloading https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (904kB)
100% |████████████████████████████████| 911kB 12kB/s
Requirement already satisfied: urllib3 in /usr/local/python3/lib/python3.7/site-packages (from selenium) (1.24.3)
Installing collected packages: selenium
Successfully installed selenium-3.141</