公司电脑pip安装pandas超时及依赖安装失败求助
我在公司电脑上尝试安装Pandas,首先执行了标准安装命令:
pip install pandas
但多次重试后都出现了连接超时的问题。
之后我下载了对应版本的离线安装包:pandas-0.22.0-cp27-cp27m-win_amd64.whl,执行本地安装命令:
pip install pandas-0.22.0-cp27-cp27m-win_amd64
结果还是失败了,抛出了一系列网络超时和依赖缺失的错误:
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003F16320>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pytz/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003F16C50>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pytz/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003F16C18>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pytz/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003F16780>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pytz/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003F16898>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pytz/
Could not find a version that satisfies the requirement pytz>=2011k (from pandas0.22.0) (from versions: )
No matching distribution found for pytz>=2011k (from pandas0.22.0)
我重复尝试安装这个whl包还是失败,后来又尝试用代理命令安装相关依赖:
pip --proxy=IND\namit.kewat:xl123456@192.168.180.150:8880 install numpy
但依旧没法成功安装Pandas。不过奇怪的是,我可以通过浏览器正常访问PyPI上的Pandas文件页面。
内容的提问来源于stack exchange,提问作者Adhil

