无法在UBuntu 16.04上安装python pip
这是我用来安装python pip的命令无法在UBuntu 16.04上安装python pip,python,linux,ubuntu,pip,Python,Linux,Ubuntu,Pip,这是我用来安装python pip的命令 sudo apt-get install python3-pip 我犯了这个错误 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have un
sudo apt-get install python3-pip
我犯了这个错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic-hwe-16.04 : Depends: linux-headers-generic-hwe-16.04 (= 4.10.0.28.31) but 4.8.0.36.8 is to be installed
python3-pip : Depends: python-pip-whl (= 8.1.1-2ubuntu0.6) but it is not going to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-setuptools but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我已经尝试运行“apt get-f install”,但它再次给出相同的错误
使用python 3.5.2
请给我解释一下如何解决这个问题
更新:-
sudo-apt-get-install-f
此命令解决了上述问题。试试这个:Ubuntu 16.04,
sudo-apt-update&&sudo-apt-install-python3-pip
:。。。将安装其他软件包:python pip whl python3设置工具python3轮子→ 没有问题。@KnudLarsen我试过了,apt是更新的,但在那之后我得到了同样的错误。在上面的错误中,这一行“linux-generic-hwe-16.04:dependens:linux-headers-generic-hwe-16.04(=4.10.0.28.31),但要安装4.8.0.36.8”,因此根据它,我需要更改类似于版本的内容。我不清楚这句话。Ubuntu 16.04 LTS EOL 2021年4月
。。。听起来是更新操作系统的最佳时机?