Ubuntu 18.04 新用户,无法安装 python3-dev

Ubuntu 18.04 新用户,无法安装 python3-dev

我实际上正在尝试通过 PyPI 安装 GitHub 项目。我在安装时遇到了一些困难,所以有人建议我尝试sudo apt-get install python3-dev

当我运行该程序时,出现以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies: python3-dev : 
Depends: libpython3-dev (= 3.6.5-3ubuntu1) but it is not going to be installed
Depends: python3.6-dev (>= 3.6.5-2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

当我使用 16.04 时,我相信我使用了 Deadsnakes PPA,所以这可能会导致此问题,但我完全不确定。

相关内容