Python下载第三方库报错Read timed out.

解决:

设置超时时间:

pip --default-timeout=1000 install -U 模块名

国内镜像下载:

pip install scipy -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

pip install scipy --default-timeout=100 -i http://pypi.douban.com/simple/ 

pip install scipy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

你可能感兴趣的:(#,Python,python,开发语言,numpy)