首页 > 系统服务 > 详细

Mac os下设置国内镜像加速站

时间:2018-12-30 18:19:33      阅读:267      评论:0      收藏:0      [点我收藏+]

  无法忍受国外pip 仓库的龟速地址,安利一波国内高速镜像地址... 首推阿里云 repository

  马爸爸  I ? u

  

1 $ vim ~/.pip/pip.conf

在config中做如下配置:

1 [global]
2 index-url = http://mirrors.aliyun.com/pypi/simple/
3 [install]
4 trusted-host = mirrors.aliyun.com

trusted-host一定要设置,不然会报错:

1 The repository located at mirrors.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with ‘–trusted-host mirrors.aliyuncs.com’.

升级OK!

(二)pycharm 中设置阿里云Repository 地址

File --->Settings -->

技术分享图片

管理仓库

技术分享图片

编辑 或者 添加 随意

技术分享图片

修改为  https://mirrors.aliyun.com/pypi/simple/
结束,纵享丝滑.....

Mac os下设置国内镜像加速站

原文:https://www.cnblogs.com/shine-rainbow/p/10200035.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!