美文网首页
【Python pip】ReadTimeoutError: HT

【Python pip】ReadTimeoutError: HT

作者: 初心不忘J | 来源:发表于2017-06-20 13:44 被阅读0次

    一、问题

    安装python的matplotlib 包,使用命令:pip install matplotlib。

    有如下错误:

    ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read ti med out.

    二、解决:

    1、按照提示升级pip。如果没有忽略

    2、使用国内镜像下载python库的办法:

    pip  install --index https://pypi.mirrors.ustc.edu.cn/simple matplotlib

    如果下载其他包更换matplotlib为目标包即可。

    --index后面也可以换成别的镜像。

    找到了一些国内镜像如下:

    阿里云 http://mirrors.aliyun.com/pypi/simple/

    中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

    douban  http://pypi.douban.com/simple

    Python官方 https://pypi.python.org/simple

    v2ex http://pypi.v2ex.com/simple

    中国科学院 http://pypi.mirrors.opencas.cn/simple/

    清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

    三、参考

    解决问题参考了以下链接:

    blog.csdn.net/u010536377/article/details/50564185 http://www.cnblogs.com/meelo/p/4636340.html

    相关文章

      网友评论

          本文标题:【Python pip】ReadTimeoutError: HT

          本文链接:https://www.haomeiwen.com/subject/azasjttx.html