当前位置:   article > 正文

pip清华源_清华源pip

清华源pip

临时修改

清华大学的镜像

https://pypi.tuna.tsinghua.edu.cn/simple
  • 1

可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple
例如:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent
  • 1

这样就会从清华这边的镜像去安装gevent

永久修改

Linux下,修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url至tuna,内容如下:

清华源

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
proxy     = http://127.0.0.1:7890
  • 1
  • 2
  • 3

阿里源

[global]
index-url = https://mirrors.aliyun.com/pypi/simple
proxy     = http://127.0.0.1:7890
  • 1
  • 2
  • 3

windows下,直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini,内容如下

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
proxy     = http://127.0.0.1:7890
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/636490
推荐阅读
相关标签
  

闽ICP备14008679号