Linux は初めてで、自分のマシンに Python / Django をセットアップしようとしています! ソースファイルから Python 3.3 をインストールし、コンパイルして/usr/local/bin
. /usr/bin/python
次に、との間にシンボリック リンクを作成して/usr/local/bin/python3
、コマンド ラインから python を呼び出すたびに最新バージョンを使用するようにしました。
ここで、MySQL Python をインストールしようとしていますが、次の出力が得られました。
apt-get install python-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-mysqldb is already the newest version.
The following extra packages will be installed:
apt-listchanges python-apt
Suggested packages:
python-glade2 python-gtk2 python-apt-dbg python-vte python-apt-doc
The following packages will be upgraded:
apt-listchanges python-apt
2 upgraded, 0 newly installed, 0 to remove and 142 not upgraded.
3 not fully installed or removed.
Need to get 0 B/394 kB of archives.
After this operation, 250 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 28, in <module>
import apt_pkg
ImportError: No module named 'apt_pkg'
これを修正する方法についてのアイデアはありますか? または、このインストールをクリーンアップする方法に関するヒントはありますか (これがあまりにも壊れている場合)。