python - 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我可以在资源管理器上毫无问题地访问它
解决方案
这对我有用:
pip --default-timeout=1000 install pandas
推荐阅读
- gcc - GCC 无法编译任何内容(甚至是空文件)并出现错误:“pthread_mutex_timedlock”未在此范围内声明
- php - Laravel setLocale 返回存储的值,但使用 config.app 默认值
- c# - 使用 Moq 将用户添加到角色
- java - 未捕获的 DOMException:无法在“节点”上执行“removeChild”:要删除的节点不是该节点的子节点
- php - 文件导入到 mySQLi - 不工作
- java - 在多个滚动中的 iframe 内滚动
- windows - Windows 10 Docker 容器客户端无法访问主机上的 SQL
- firebase - 将 Firestore 索引与 web 应用程序中的 slug 相关联
- javascript - 如何删除角度的自动对焦?
- r - plot_summs() 改变绘制回归系数的大小