pip安装d2lzh库报错raise ReadTimeoutError
(self._pool, None, ‘Read timed out.’)
pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’, port=443): Read timed out.
解决方案如下
1.使用标准的命令格式且使用清华大学提供的镜像:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn d2lzh
结果:
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/17/e3/c7ea888bd6e9849c60b1f378637850265177ed01297137f544a7ecf7d7ba/Pygments-2.7.4-py3-none-any.whl (950kB)
44% |██████████████▏ | 419kB 10kB/s eta 0:00:52Exception:
Traceback (most recent call last):
File “X:\anna\envs\gluon\lib\site-packages\pip_vendor\requests\packages\urllib3\response.py”, line 237, in _error_catcher
raise ReadTimeoutError(self._pool, None, ‘Read timed out.’)
pip._