pip安装报错“pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhost”
问题:
pip更新后,安装软件报错:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out
解决方法:
pip安装的时候由于网络原因导致安装包安装速度较慢,引起超时导致。
pip安装时加入超时机制: --default-timeout=100 (时间可以自设定)