【解决】python 换源安装解决报错Read timed out

报错:pip._vendor.urllib3.exceptions.ReadTimeoutError:HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.

原因:连接超时

解决:

pip install --default-timeout=1000 Pillow
人工修改超时时间,或者更换国内源:
pip install sklearn -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
或者使用清华源
https://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(Python报错记录)