【发布时间】:2012-11-22 09:22:06
【问题描述】:
我是 Debian 用户,我想安装 python-dev,但是当我以 root 身份在 shell 中运行代码时:
# aptitude install python-dev
我收到以下错误:
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 28, in <module>
import apt_pkg
ImportError: No module named apt_pkg
似乎是什么问题,我该如何解决?
【问题讨论】:
-
看起来你的 apt ist 坏了,当你尝试 apt-get install python-dev 时会发生什么
-
当我尝试使用 apt-get install python-dev 时,它说它已经安装了:Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already最新版本。 0 升级,0 新安装,0 删除,0 未升级。还有其他建议吗?
标签: python linux installation debian