sudo apt update
sudo apt install python3
sudo apt install python3-pip
sudo mkdir ~/.pip
sudo vim ~/.pip/pip.conf
添加如下内容
[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
原文:https://www.cnblogs.com/iread9527/p/12439019.html