我正在尝试在运行 10.8.5 的 Mac 上运行一个名为 Nicotine+ 的程序。Nicotine+ 需要 GTK2、PyGTK2 和 Python 才能运行。我相信我已经通过 Macports 安装了所有这些。- 这里安装的端口列表 - http://pastebin.com/nwmrpp2Y
当我尝试运行 Nicotine+ 时,我收到以下消息:
'/Users/******/Downloads/nicotine+-1.2.16',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages'] Exception: No module named pygtk
如果我运行 Python 并输入 import pygtk 我会收到以下消息:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygtk