- 进入根目录:
cd ~/
- 进入.pip目录
cd .pip
- 如果不存在文件夹就新建
mkdir .pip
- 进入
cd .pip
- 创建pip.conf文件
touch pip.conf
- 修改:
vim pip.conf
在这里我们修改源为阿里的(永久性修改)
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
cd ~/
cd .pip
mkdir .pip
cd .pip
touch pip.conf
vim pip.conf
在这里我们修改源为阿里的(永久性修改)
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://learnku.top/Python/34.html