理想情况下,我想使用 pip 或 Homebrew 安装 pygtk。两者似乎都不可能。
我正在运行 Leopard。
I've archive some success running tryton which uses pygtk with Homebrew.
I've uninstalled anything installed before in Homebrew and installed again with:
brew install pygtk
I guess to do the trick is setting the PYTHONPATH as brew says end of install, I do my setup in ~/.bashrc file.
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
I hope it helps
您需要自己安装 pygtk - 至少因为它的一些依赖项(如 dextras)不能通过 PyPI 获得。