8

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

I am running Leopard.

Natan Yellin
  • 5,662
  • 4
  • 34
  • 57

2 Answers2

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

Rui Andrada
  • 246
  • 4
  • 9
1

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

Andreas Jung
  • 1
  • 19
  • 73
  • 119
  • 2
    So should one first install gtk with homebrew and then pygtk with pip or easyinstall ? – Ib33X Jul 06 '11 at 09:44