How to install pygtk 3 on Mac OS X?

后端 未结 4 1416
醉梦人生
醉梦人生 2020-12-20 21:13

What I tried:

brew install pygobject3 --with-python@2 gtk+3
brew install pygtk3
brew install pygobject3
pip install pygobject

python -c \'import gi; gi.requ         


        
4条回答
  •  情深已故
    2020-12-20 21:59

    I had the same problem. I tried

    $ brew install pygobject3 gtk+3

    and it was smoothly installing. Then checked as Jeff's answer:

    $ python3 -c 'import gi; gi.require_version("Gtk", "3.0"); print("ok")'

    got ok.

    Hope this helps,

    Cheers

提交回复
热议问题