Python报错ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
在安装第三方库的时候,Python报错:
ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
解决办法
输入指令
pip --default-timeout=100 install 库名称 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
``
或者
``
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名
``