Python安装库显示HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read Time out.

问题:Python安装库显示HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read Time out.

Python安装库显示HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read Time out._第1张图片

解决方案:更换镜像源,比如换成清华镜像源

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名

例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple imblearn

 

你可能感兴趣的:(python)