美文网首页
Linux 服务器配置pip源

Linux 服务器配置pip源

作者: pyjsh | 来源:发表于2019-12-27 09:56 被阅读0次

1.在根目录下创建.pip文件夹

mkdir ~/.pip

2.在创建好的.pip文件夹下创建pip源配置文件

touch ~/.pip/pip.conf

3.选择国内某一pip源配置到文件pip.conf中,样例如下(这里用的是阿里的pip源):

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

相关文章

网友评论

      本文标题:Linux 服务器配置pip源

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