Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip Install Timeout Issue

Tags:

python

pandas

pip

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(<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)

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:[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

like image 889
Adhil Avatar asked May 12 '18 10:05

Adhil


People also ask

What is pip default timeout?

PIP has a default timeout of 15 sec , reference guide.

Does pip install globally or locally?

The Pip Package Manager can be used to list both globally and locally installed Python packages.

What is the default timeout for Pip?

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: as suggested by @Pouya Khalilzad.

How to fix pip install read timeout error in Python?

As a python programmer, we often use pip intall command to install python libary. However, we often encounter read timeout error when installing. In this tutorial, we will introduce a new way to fix this read timeout error. To fix pip install read timeout error, we have two ways: Method 1: Set a long read time and retry times for pip

Why can't I install certain packages via pip?

So the error means that your system is unable to reach the default index url to locate whatever package you want to install via pip. It generally points to a network issue. I think you can try each steps listed in #7424 (comment) one by one again and mention if a certain step worked, or didn't work, and why (along with the logs).

Why does Pip keep failing to reach the same website?

Its reaching same website Sorry, something went wrong. So the error means that your system is unable to reach the default index url to locate whatever package you want to install via pip. It generally points to a network issue.


2 Answers

This works for me:

pip --default-timeout=1000 install pandas
like image 143
Pouya Khalilzad Avatar answered Oct 27 '22 00:10

Pouya Khalilzad


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 --default-timeout=1000 install pandas

as suggested by @Pouya Khalilzad.

like image 24
Gathide Avatar answered Oct 26 '22 22:10

Gathide