linux更改pip镜像源
创建一个文件
~/.pip/pip.conf 文件
进入 ~/.pip 路径下
创建文件
touch pip.conf
进入
sudo vim pip.conf
点击 字母 i 开始写入
[global]
timeout = 3000
index-url = http://mirrors.aliyun.com/pypi/simple
[install]
trusted-host=mirrors.aliyun.com
然后 esc
然后 点击 :
输入 wq!
浙公网安备 33010602011771号