HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.

HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.

Problem

When trying to install big-size libraries like requests that depend on url3 or Scipy on low-speed internet it always fails because there is a 30sec default timeout.

Fail example:

line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pipenv.patched.pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

Solution

Set default timeout for pipenv pip by:

mkdir $HOME/.config/pip/
touch $HOME/.config/pip/pip.conf
echo -e "[global]\ntimeout = 3600"> $HOME/.config/pip/pip.conf
AHMED ELKHAYYAT
https://elkhayyat.me

I am a very keen individual that enjoys developing Python Programming Language. I have always loved computers and technology, ever since childhood. A team player who loves to work with other people on innovative projects and to take on challenges as an opportunity to grow as an individual in both a professional and personal capacity.

Leave a Reply

Select your currency
USD United States (US) dollar