windows python install pygtk

windows上安装gtk是一个老大难问题,特别是windows 64

下面转载一个文章,立斩所有麻烦


http://digitalpbk.blogspot.com/2012/03/installing-pygtk-pypango-and-pycairo-on.html

To install pygtk, pypango and pycairo on Windows,

  • Download 64bit GTK libraries from the gtk websitehttp://www.gtk.org/download/win64.php, Download the all-in-one zip file.
  • Extract it to
    C:\gtk
  • Add the path
    C:\gtk\bin
    to environment path
  • Download 64bit versions of pygobject, pygtk and py2cairo from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygtk
  • Double click and install all the exes
That's it. 
Hope this helps everyone stuck installing  pypango, pycairo, pyGTK .

你可能感兴趣的:(python)