我使用 Mac OS X Lion
和 Python 2.7
。我是 python 的新手。 Can anyone tell me how to import
AppKit
and PyObjC
to Python
.但是我在尝试导入时遇到错误 Import Error: No module named AppKit
或 ‘ Import Error: No module named PyObjC
。
尝试 easy_install
也无济于事。
我该怎么做才能导入这两个模块?
原文由 VeilEclipse 发布,翻译遵循 CC BY-SA 4.0 许可协议
如果尚未安装,请运行以下命令安装
pip
:然后运行:
或者