一直以来用Anaconda python(3.5以上版本)开发些爬虫及自动化测试的应用。由于一直用pip xxx install 联网安装一些第三方扩展包,以为开源时代必须这么装了。
因为内联网无法用pip 下载安装,逼着自己去找离线安装的方法, selenium官网写到:
Installing:
If you have pip on your system, you can simply install or upgrade the Python bindings:
pip install -U selenium
Alternately, you can download the source distribution from PyPI (e.g. selenium-3.141.0.tar.gz), unarchive it, and run:
python setup.py install
Note: You may want to consider using virtualenv to create isolated Python environments.
实际就是 下载selenium-3.141.0.tar.gz,解包到任意目录,在Anaconda Prompt 下
cd selenium 解包路径
python setup.py install