VirtualEnv

修改配置文件

1)检查pip.conf文件是否存在

1
2
3
>> cd ~
>> mkdir .pip
>> ls ~/.pip

2)直接编辑pip.conf

1
sudo vi ~/.pip/pip.conf 

修改成如下的格式

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

临时作用的方式

1
pip3 install 包名 -i https://mirrors.aliyun.com/pypi/simple/

Powered by Hexo and Hexo-theme-hiker

Copyright © 2015 - 2021 昨夜凛雨 All Rights Reserved.

UV : | PV :