Fixing Pip Timeout Problems

Posted on Cum 16 Kasım 2018 in new • 1 min read

For a large package like tensorflow I was experiencing the following error in pip

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='', port=443): Read timed out.

    v =, buffer)
socket.timeout: The read operation timed out

I noticed the pip has a timeout parameter that can be set:

pip --default-timeout=1000 install package-name