python pygtk windows 7 64位 [英] python pygtk windows 7 64 bit

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

问题描述

我在 linux 上使用 pygtk 已经有一段时间了.我只是想让我的应用程序更易于分发.现在我已经将 pygtk 用于 32 位,但现在我想使用 pygtk 64 位将 pygtk 用于 64 位.我已经下载了多合一安装程序.我已经改变了我的路径,因为 gtk 想要运行pkg-config --cflags gtk+-2.0"命令,然后运行 ​​gtk-demo 命令,它确实给了我一个演示,而且效果很好!只是我错过了一些东西,因为我的 python gtk 64 位中仍然没有名为gtk"的模块.

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.

推荐答案

对于那些正在寻找可在 Windows 64 位中使用的 GUI Python 库的人来说,这里是它!

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

1) 从 python.org 安装 python 64 位,如果你的系统上已经安装了 python,你不需要担心这个.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+ 下载多合一安装程序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:optgtk 中创建一个文件夹 # 将它添加到 PATH 的位置并不重要.解压文件夹并将所有文件复制到上面创建的文件中.然后,将您的 PATH 设置为创建的文件 E.G ;C:optgtkin

4)create a folder that is in c:optgtk # 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:optgtkin

您现在可以在 cmd 中输入以下内容进行测试:gtk-演示"

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

5) 现在你仍然需要得到库 gtk、PyCairo、goobjecthttp://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"我不确定是否需要这样做,我目前正在测试我的应用程序.现在我只需要为 win7 64bit 找到 gtksourceview2/3.祝你好运!;)

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! ;)

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

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