Read timed out.

Pycharm在安装第三方库的时候报错 "Read timed out."

错误原因

时间超时,无法按时完成下载安装

解决办法

方法一: 使用国内镜像进行下载安装

pip的国内镜像有

豆瓣: http://pypi.douban.com/

山东理工大学: http://pypi.sdutlinux.org/

华中理工大学: http://pypi.hustunique.com/

中国科技技术大学: http://pypi.mirrors.ustc.edu.cn/

切换制定源

在pip后面加上 -i 来指定镜像源。

示例使用山东理工大学的镜像源来安装whois库:

pip install whois -i  http://pypi.sdutlinux.org/simple

注意: 后面要有 /simple 目录

方法二:安装whois库:
pip –default-timeout=100 install -U whois

在这里插入图片描述

发布了827 篇原创文章 · 获赞 112 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_45743799/article/details/105218007