本文引自 原文链接
前提是你已安装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