更改pip镜像

本文引自 原文链接

前提是你已安装pip,如果未安装,简单暴力的方法是卸掉python,重新安装时,勾选将安装pip并添加到环境变量。

在cmd中输入pip --version,如下图则说明正确安装了pip

在这里插入图片描述

然后输入

pip3 config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple

即将镜像设置为清华的镜像

镜像网址列举一二:

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

2.中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

3.华中科技大学http://pypi.hustunique.com/

参考链接:https://blog.csdn.net/yin__ren/article/details/92090111

https://blog.csdn.net/sinat_21591675/article/details/82770360

发布了1 篇原创文章 · 获赞 2 · 访问量 106

猜你喜欢

转载自blog.csdn.net/qq_40608730/article/details/104836328