The solution to raise ReadTimeoutError(self._pool, None,'Read timed out.') occurs when pip install

The solution to raise ReadTimeoutError(self._pool, None,'Read timed out.') occurs when pip install

Problem Description

When pip install the third-party library tensorflow, the following error message appeared:
raise ReadTimeoutError(self._pool, None, “Read timed out.”)
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.tuna. tsinghua.edu.cn', port=443): Read timed out.

Solution

  • Replace Douban Source
pip install -i https://pypi.douban.com/simple <需要安装的包>
比如:
pip install -i https://pypi.douban.com/simple requests

Guess you like

Origin blog.csdn.net/weixin_43640306/article/details/108003163