首页 > 解决方案 > Pip 安装超时问题

问题描述

我正在尝试在我的公司计算机上安装熊猫。我试着做

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 pandas==0.22.0) (from versions: )
    No matching distribution found for pytz>=2011k (from pandas==0.22.0)

我对包做了同样的事情:pandas-0.22.0-cp27-cp27m-win_amd64.whl

我也尝试使用代理:

pip --proxy=IND\namit.kewat:xl123456@192.168.180.150:8880 install numpy

但我无法得到熊猫。

当我尝试访问该站点时:https ://pypi.org/project/pandas/#files我可以在资源管理器上毫无问题地访问它

标签: pythonpandaspip

解决方案


这对我有用:

pip --default-timeout=1000 install pandas

推荐阅读