Easiest way to install pygtk on Mac OS X

旧时模样 提交于 2019-12-05 23:20:41

问题


Ideally, I would like to install pygtk using pip or Homebrew. Neither one seems to be possible.

I am running Leopard.


回答1:


You need to install pygtk yourself - at least because since some of its dependencies like dextras are not available through PyPI.




回答2:


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



来源:https://stackoverflow.com/questions/5089649/easiest-way-to-install-pygtk-on-mac-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!