1 添加源(原有基础上)
sudo vim /etc/apt/sources.list
2 把下面的内容插入到sources.list
中去
deb http://cn.archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-proposed main multiverse restricted universe
3 update更新命令
sudo apt-get update
4 安装pip3
sudo apt-get install python3-pip
5 安装distutils,解决报错问题
sudo apt-get install python3-distutils