由于单位电脑不能联网,想在上面搭建一个python selenihm开发环境,所以手动下载了selenium包,安装的python版本是3.8.10,进行手动安装,但安装时报错,如下。
C:\Program Files\python\Lib\site-packages>pip install selenium-4.9.0-py3-none-an
y.whl
Processing c:\program files\python\lib\site-packages\selenium-4.9.0-py3-none-any
.whl
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.con
nection.HTTPSConnection object at 0x02F5B208>: Failed to establish a new connect
ion: [Errno 11004] getaddrinfo failed')': /simple/certifi/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.con
nection.HTTPSConnection object at 0x02F5B478>: Failed to establish a new connect
ion: [Errno 11004] getaddrinfo failed')': /simple/certifi/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.con
nection.HTTPSConnection object at 0x02F0D598>: Failed to establish a new connect
ion: [Errno 11004] getaddrinfo failed')': /simple/certifi/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.con
nection.HTTPSConnection object at 0x02F46388>: Failed to establish a new connect
ion: [Errno 11004] getaddrinfo failed')': /simple/certifi/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.con
nection.HTTPSConnection object at 0x02F46598>: Failed to establish a new connect
ion: [Errno 11004] getaddrinfo failed')': /simple/certifi/
ERROR: Could not find a version that satisfies the requirement certifi>=2021.10.
8 (from selenium) (from versions: none)
ERROR: No matching distribution found for certifi>=2021.10.8
还需要先安装 certifi