美文网首页
[python] 更改 pip 国内更新源-加速

[python] 更改 pip 国内更新源-加速

作者: Silver_42ac | 来源:发表于2020-11-29 01:29 被阅读0次
#升级 pip 到最新的版本 (>=10.0.0) 后进行配置:

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

# 中国科学技术大学
#pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple

#如果 pip 默认源的网络连接较差,临时使用本镜像站来升级 pip:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

#自己编辑
       pip edit

参考
https://mirrors.tuna.tsinghua.edu.cn/help/pypi/

相关文章

网友评论

      本文标题:[python] 更改 pip 国内更新源-加速

      本文链接:https://www.haomeiwen.com/subject/vuyhwktx.html