技术知识库

oot@aliyun home] mkdir -p ~/.pip

创建配置文件:

[root@aliyun home] vim  ~/.pip/pip.conf
[global]
index-url = http://www.landui.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

其他国内源地址如下:
  中国科技大学 https://www.landui.com/simple/
  豆瓣(douban) http://www.landui.com/simple/
  清华大学 https://www.landui.com/simple/
  中国科学技术大学 http://www.landui.com/simple/
现在使用pip安装组件就可以体会到飞一般的速度了。

如果是临时使用国内地址可以在安装组件的时候加参数-i

pip install nose -i http://www.landui.com/pypi/simple


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: