pip更换国内源
作者:
平凡的运维之路 | 来源:发表于
2021-12-05 22:25 被阅读0次
Python pip更换国内源
国内源
1、阿里云 https://mirrors.aliyun.com/pypi/simple/
2、中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
3、豆瓣(douban) http://pypi.douban.com/simple/
4、清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
5、中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
linux更换操作
- 创建这个文件并输入以下内容
~/.pip/pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
windows:更换操作
- 在user目录中创建一个pip目录,如:C:\Users<username>\pip中,创建pip.ini,然后输入以下内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
然后测试是否快了
本文标题:pip更换国内源
本文链接:https://www.haomeiwen.com/subject/gwbwxrtx.html
网友评论