Ubuntu18.04安装pip3并修改下载源

1、安装pip3

sudo apt install python3-pip

2、修改下载源

mkdir ~/.pip
vim ~/.pip/pip.conf

向pip.conf加入如下内容

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

你可能感兴趣的:(Ubuntu18.04安装pip3并修改下载源)