蟒蛇的PyGTK的Windows 7 64位 [英] python pygtk windows 7 64 bit

查看:287
本文介绍了蟒蛇的PyGTK的Windows 7 64位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在与PyGTK的Linux上的一些再寄一次只想让我的应用程序更多的分配。现在,我已经使用PyGTK的为32位,但现在我想使用PyGTK的为64位使用PyGTK的64位。我已经下载了全部在一个安装程序。我已经改变了我的道路为GTK希望并运行pkg配置--cflags GTK + -2.0命令,然后跑了GTK的演示命令,它没有给我一个演示和完美的作品!只是我很想念成才,因为在我的蟒蛇GTK依然没有模块命名为GTK64位。

I have been working with pygtk on linux for some time.I just want to make my app more distributable. Now I have used pygtk for 32 bit, but now I'd like to use pygtk for 64bit using pygtk 64bit. I have downloaded the all in one installer. I have changed my path as gtk would want and run the "pkg-config --cflags gtk+-2.0" command then ran the gtk-demo command and it did give me a demo and that works perfectly! Just I am missing someting because there in still no module named 'gtk' in my python gtk 64 bit.

我想使64位版本的GTK工作在Windows和当我得到修复我想在YouTube上发布关于如何使它为别人打工。

I want to make the 64 bit version of gtk work on windows and when I get a fix I want to post on Youtube on how to make it work for others.

感谢你,我希望有人能帮助使文档缺乏这一部分。

Thank you, I hope someone can help cause the documentation is lacking on this part.

推荐答案

确定对于那些正在寻找一个图形用户界面的Python的lib是在Windows 64位用在这里它是!

Ok for those that are searching for a GUI Python lib to be used in Windows 64 bit here it is!

1)从Python.org上的蟒蛇64位,如果你已经安装了Python的系统上安装,你不会需要担心这一点。 <一href="http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi">http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi

1) Install from python.org the python 64bit, If you already have python installed on your system, you wont need to worry about this. http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi

2)添加到您的PATH中的高级设置/环境变量 ; C:\ python27

2)Add to your PATH in the advanced settings/environment variables ;C:\python27

3)然后下载从GTK的都在同一个安装程序+ <一href="http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip">http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip

3)Then download the all in one installer from GTK+ http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip

4)创建一个文件夹,在C:\选择\ GTK#它并没有真正身在何处,你就得把它添加到PATH。 解压缩的文件夹和所有文件复制到上面创建的文件。 然后,设置PATH创建EG文件:C:\选择\ GTK \ BIN

4)create a folder that is in c:\opt\gtk # it doesn't really matter where you'll just have to add it to PATH. unzip the folder and copy all the files to the the file created above. then, set your PATH to the file created E.G ;C:\opt\gtk\bin

您可以通过键入CMD测试一下: GTK-演示

You can test it now in cmd by typing: "gtk-demo"

5)现在,你仍然必须得到库GTK,PyCairo,goobject <一href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygtk">http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygtk

5)Now you still have to get the libraries gtk,PyCairo,goobject http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygtk

py2cairo-1.10.0.win-AMD64-py2.7.exe

py2cairo-1.10.0.win-amd64-py2.7.‌exe

pygobject-2.28.6.win-AMD64-py2.7.exe

pygobject-2.28.6.win-amd64-py2.7.‌exe

pygtk的-2.22.0.win-AMD64-py2.7.exe

pygtk-2.22.0.win-amd64-py2.7.‌exe

我希望它能帮助。我看到了一个文件py2cairo-1.10.0.win-AMD64-py2.7.exe 我不能肯定,如果这是需要我目前正在测试我的应用程序。 现在我只需要找到gtksourceview2 / 3的win7 64位。 祝你好运! ;)

I hope it helps. I saw a file "py2cairo-1.10.0.win-amd64-py2.7.‌exe" I am not certain if this is needed I am currently testing my applications. Now I just need to find gtksourceview2/3 for win7 64bit. Good Luck! ;)

这篇关于蟒蛇的PyGTK的Windows 7 64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆