切换pip源的简便方法

网上大部分帖子讲的都是打开配置文件修改,那样太麻烦了,其实只要一行命令搞定:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

附国内常用镜像源:

阿里云:https://mirrors.aliyun.com/pypi/simple/

中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/

清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/

猜你喜欢

转载自www.cnblogs.com/trialley/p/10410501.html