临时使用
首选 pypi 镜像:
https://pypi.tuna.tsinghua.edu.cn/simple
很多情况下直接用清华大学开源镜像站是下载不成功的,清华大学开源镜像站如下:
https://mirrors.tuna.tsinghua.edu.cn/
阿里的覆盖了不到 50 个软件源,而清华的覆盖了 137 个。这其中覆盖了阿里所有的源,还有比较常用的有 homebrew 的镜像。此外 google 系开源软件的源代码比如 chromium,android,tensorflw 等等都有涉及。
更改默认源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple