美文网首页
pip设置阿里云

pip设置阿里云

作者: 不死鸟F21 | 来源:发表于2020-01-20 18:05 被阅读0次

设置阿里云pip源,加速pip更新速度

Linux系统:

mkdir ~/.pip

cat > ~/.pip/pip.conf << EOF

[global]
trusted-host=mirrors.aliyun.com
index-url=https://mirrors.aliyun.com/pypi/simple/

EOF

Windows系统:

首先在window的文件夹窗口输入 : %APPDATA%

然后创建pip文件夹

最后创建pip.ini文件,写入如下内容

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

相关文章

网友评论

      本文标题:pip设置阿里云

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