Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easiest way to install pygtk on Mac OS X

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

I am running Leopard.

like image 244
Natan Yellin Avatar asked Feb 23 '11 10:02

Natan Yellin


1 Answers

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

like image 78
Rui Andrada Avatar answered Oct 27 '22 06:10

Rui Andrada