Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
195 views
in Technique[技术] by (71.8m points)

python 2.7 - Pip Install Timeout Issue

I am trying to install pandas in my company computer. I tried to do

pip install pandas

but operation retries and then timesout.

then I downloaded the package:

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)

I did the same with package: pandas-0.22.0-cp27-cp27m-win_amd64.whl

I also tried to use proxies:

pip --proxy=IND
amit.kewat:[email protected]:8880 install numpy

But I am unable to get pandas.

when I tried to access the site : https://pypi.org/project/pandas/#files I can access it without any problem on explorer

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This works for me:

pip --default-timeout=1000 install pandas

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...