Wing的小站

  • 首页
  • IT新闻
  • 技术文章
  • 生活随笔
  • 休闲娱乐
  • 个人作品
  • 留言板
  • 关于博主
JavaFX,Unity3D,Android,IOS,技术教程,生活随笔
  1. 首页
  2. 默认
  3. 正文

Mac pip3 install错误 Read timed out

2019年11月29日 17315点热度 0人点赞 1条评论

我们在使用Pip的时候,经常会因为访问源的问题而报错:HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out。

其实很简单,我们只需要将源切换成国内源即可。

首先通过以下命令创建配置文件:

mkdir ~/.pip 
vim ~/.pip/pip.conf

然后在配置文件中配置源:

[global]
timeout = 6000
index-url = http://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com

这样就可以发现速度快多了,哈哈。

标签: 暂无
最后更新:2019年12月13日

wing1314

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • Lila Hyman
    2024年7月17日
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复

    COPYRIGHT © 2023 Wing的小站. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    鄂ICP备17006951号-1

    42011102000591