8

理想情况下,我想使用 pip 或 Homebrew 安装 pygtk。两者似乎都不可能。

我正在运行 Leopard。

4

2 回答 2

6

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

于 2013-01-07T22:51:22.537 回答
1

您需要自己安装 pygtk - 至少因为它的一些依赖项(如 dextras)不能通过 PyPI 获得。

于 2011-02-23T12:23:30.193 回答