尝试在ubuntu中使用命令
sudo apt-get install python3-pip
然而报错
E: Unable to correct problems, you have held broken packages.
尔后根据常规处理方法无果
解决方法:
- 更换源。之前使用阿里云,更换为中科大源并
sudo apt-get update
之后解决问题
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted