Pip Install Timeout Issue

2019-08-08 14:59发布

问题:

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\namit.kewat:xl123456@192.168.180.150: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

回答1:

Did you install python using anaconda ? if not I recommend you reinstall it using anaconda.

If you used anaconda to install python, try this conda install pandas



回答2:

This works for me:

pip --default-timeout=1000 install pandas