selenium下载地址
将selenium-4.0.0-py3-none-any.whl放到Python37\Lib\site-packages目录下
使用pkginfo工具查看whl依赖包
C:\Users\lvliang\Downloads>pkginfo -f requires_dist selenium-4.0.0-py3-none-any.whl
requires_dist: ['urllib3[secure]~=1.26', 'trio~=0.17', 'trio-websocket~=0.9']
info文件的METADATA中也可以看到所需的依赖
下载依赖
https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-dateutil --国内渠道
https://pypi.org/project/ -- 官网
1、安装
pip install xxxx.whl
以下whl包按顺序安装
urllib3-1.26.7-py3-none-any.whl
attrs-21.2.0-py2.py3-none-any.whl
outcome-1.1.0-py2.py3-none-any.whl
pycparser-2.20-py3-none-any.whl
cffi-1.15.0-cp37-cp37m-win_amd64.whl
idna-3.1-py3-none-any.whl
sniffio-1.2.0-py3-none-any.whl
async_generator-1.10-py3-none-any.whl
sortedcontainers-2.4.0-py3-none-any.whl
trio-0.19.0-py3-none-any.whl
h11-0.12.0-py3-none-any.whl
wsproto-1.0.0-py3-none-any.whl
trio_websocket-0.9.2-py3-none-any.whl
six-1.16.0-py3-none-any.whl
asn1crypto-0.24.0-py2.py3-none-any.whl
cryptography-2.3-cp37-cp37m-win_amd64.whl
pyOpenSSL-0.15-py2.py3-none-any.whl
certifi-2019.11.28-py2.py3-none-any.whl
selenium-4.0.0-py3-none-any.whl
---------20211102修改
如果是32位操作系统的话,需要替换以下两个包
cffi-1.15.0-cp37-cp37m-win32.whl
cryptography-2.3-cp37-cp37m-win32.whl