ubuntu 20.04 配置pip 源
1.安装pip
apt-get install python-pip python-dev build-essential
pip install --upgrade pip
pip install --upgrade virtualenv
2.创建pip.config 文件
mkdir ~/.pip
vim ~/.pip/pip.conf
3.添加pip源
# 阿里源
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
# nexus3源
[global]
index-url = https://nexus3.in/repository/pypi-aliyun/simple/
[install]
trusted-host=nexus3.in