Ateeb Ateeb - 3 years ago 376
Python Question

How to solve Pip ReadTimeoutError: HTTPSConnectionPool(host='', port=443): Read timed out.

I recently need to install some packages

pip install future
pip install scikit-learn
pip install numpy
pip install scipy

I also tried by writin
before them but all it came up with the following errors in red lines:

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/", line 122, in main
status =, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/", line 1198, in prepare_files
File "/usr/lib/python2.7/dist-packages/pip/", line 1376, in unpack_url
File "/usr/lib/python2.7/dist-packages/pip/", line 572, in unpack_http_url
download_hash = _download_url(resp, link, temp_location)
File "/usr/lib/python2.7/dist-packages/pip/", line 433, in _download_url
for chunk in resp_read(4096):
File "/usr/lib/python2.7/dist-packages/pip/", line 421, in resp_read
chunk_size, decode_content=False):
File "/usr/lib/python2.7/dist-packages/urllib3/", line 256, in stream
data =, decode_content=decode_content)
File "/usr/lib/python2.7/dist-packages/urllib3/", line 201, in read
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='', port=443): Read timed out.

Storing debug log for failure in /root/.pip/pip.log'

Answer Source

Yaayy ! I have found the answer. Just use --default-timeout=100 parameter with the install. e.g

sudo pip install --default-timeout=100 future
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download