PIP指定国内镜像源
临时替换
pip install -i http://pypi.douban.com/simple/ numpy pip install -i http://pypi.douban.com/simple/--trusted-host pypi.douban.com #此参数“--trusted-host”表示信任,如果上一个提示不受信任,就使用这
永久替换(即设置默认安装源)
//Windows pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple //Linux pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple Writing to /root/.config/pip/pip.conf
各国内镜像源
1 阿里云:http://mirrors.aliyun.com/pypi/simple/ 2 豆瓣:http://pypi.douban.com/simple/ 3 清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/ 4 中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple/ 5 华中科技大学:http://pypi.hustunique.com/
- 作 者 : 荒湮雾海
- 博客地址 : http://www.cnblogs.com/ecouter
- 声 明1 : 若您在浏览文章的过程中发现需要纠正的错误,或有任何的疑问,欢迎您在评论中留言。
- 声 明2 : 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文。

浙公网安备 33010602011771号