开发者

Easiest way to install pygtk on Mac OS X

开发者 https://www.devze.com 2023-02-12 16:10 出处:网络
I开发者_如何转开发deally, I would like to install pygtk using pip or Homebrew. Neither one seems to be possible.

I开发者_如何转开发deally, I would like to install pygtk using pip or Homebrew. Neither one seems to be possible.

I am running 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消