pandas Pip安装超时问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/50305112/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Pip Install Timeout Issue
提问by Adhil
I am trying to install pandas in my company computer. I tried to do
我正在尝试在我公司的计算机上安装 Pandas。我试着做
pip install pandas
but operation retries and then timesout.
但操作重试然后超时。
then I downloaded the package:
然后我下载了这个包:
pandas-0.22.0-cp27-cp27m-win_amd64.whl
pandas-0.22.0-cp27-cp27m-win_amd64.whl
and install:
并安装:
pip install pandas-0.22.0-cp27-cp27m-win_amd64
But I get the following error:
但我收到以下错误:
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(, '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(, '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(, '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(, '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(, '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)
与 pypi.python.org 的连接超时。(connect timeout=15)')': /simple/pytz/ 重试 (Retry(total=0, connect=None, read=None, redirect=None, status=None)) 在连接被 'ConnectTimeoutError(, 'Connection to pypi.python.org 超时。(connect timeout=15)')': /simple/pytz/ 找不到满足要求的版本 pytz>=2011k (from pandas==0.22.0) (from versions: ) 没有找到 pytz>=2011k 的匹配分布(来自 pandas==0.22.0)
I did the same with package: pandas-0.22.0-cp27-cp27m-win_amd64.whl
我对包做了同样的事情: pandas-0.22.0-cp27-cp27m-win_amd64.whl
I also tried to use proxies:
我也尝试使用代理:
pip --proxy=IND\namit.kewat:[email protected]:8880 install numpy
But I am unable to get pandas.
但我无法获得Pandas。
when I tried to access the site : https://pypi.org/project/pandas/#filesI can access it without any problem on explorer
当我尝试访问该站点时:https: //pypi.org/project/pandas/#files我可以在资源管理器上毫无问题地访问它
采纳答案by Ziyad Moraished
回答by Pouya Khalilzad
This works for me:
这对我有用:
pip --default-timeout=1000 install pandas
回答by Gathide
PIP
has a default timeout of 15 sec
, reference guide. Pandas
is a relatively big file, at 10MB, and it's dependant Numpy
, at 20MB could still be needed (if it is not installed already.). In addition, your network connection may be slow. Therefore, set PIP
to take longer time by, for example, giving it 1000 sec
:
PIP
有一个默认超时15 sec
,参考指南。Pandas
是一个相对较大的文件,为 10MB,它是依赖的Numpy
,仍然需要 20MB(如果尚未安装。)。此外,您的网络连接可能很慢。因此,设置PIP
需要更长的时间,例如,给它1000 sec
:
pip --default-timeout=1000 install pandas
as suggested by @Pouya Khalilzad.
正如@Pouya Khalilzad 所建议的那样。