美文网首页
python 国内镜像:一键设置

python 国内镜像:一键设置

作者: 九天牧人 | 来源:发表于2020-02-22 21:02 被阅读0次

临时使用

pip的时候加参数-i

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

永久使用:注意是pip3

终端执行如下语句添加阿里云的python镜像源:

pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/

相关文章

网友评论

      本文标题:python 国内镜像:一键设置

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