我正在使用 PyQt 为客户/朋友开发一个应用程序。我一直在 Linux 上工作并在 Vista 上进行测试,但目标计算机是 Vista x64。现在,Python 附带了适用于 64 位 Windows 的 Python 2.6 编译二进制文件,但 Riverbank 不为 PyQt 提供 64 位二进制文件。
我对目标计算机没有太多访问权限,因此我无法真正浏览 编译 PyQt 的麻烦。 这个 Google 代码项目可能是解决方案,但我'我不确定它是否会起作用。
我可以使用 32 位 Vista 中的 py2exe 之类的东西,还是必须从安装了 PyQt 64 位的 64 位计算机上生成可执行文件?基本上,我必须在目标机器上编译 PyQt 吗?
I'm working on an application for a client/friend using PyQt. I've been working on Linux and testing on Vista, but the target computer is Vista x64. Now, Python comes with compiled binaries of Python 2.6 for 64 bit Windows, but Riverbank don't provide 64 bit binaries for PyQt.
I don't have much access to the target computer, so I can't really go through the hassle of compiling PyQt. This Google code project might be the solution, but I'm not sure if it's going to work.
Can I use something like py2exe from 32 bit Vista, or would I have to have to make the executable from a 64 bit machine with PyQt 64 bit installed? Basically, am I going to have to compile PyQt on the target machine?
发布评论
评论(2)
从您发布的同一链接中,该人为 Python 2.6 制作了二进制文件
http://www.ozgurfx.com/downloads/PyQt-Py2.6-gpl-4.5.4-1_amd64.exe
这是我的来源:
http://www.mail-archive.com/[电子邮件受保护]/msg01977.html
注意:不要忘记 Microsoft Visual C++ 2005 SP1 Redistributable Package (x64),但我猜大多数计算机已经安装了...只是提醒一下。
From the same link you posted, the guy made a binary for Python 2.6
http://www.ozgurfx.com/downloads/PyQt-Py2.6-gpl-4.5.4-1_amd64.exe
Here's my source:
http://www.mail-archive.com/[email protected]/msg01977.html
Note: do not forget the Microsoft Visual C++ 2005 SP1 Redistributable Package (x64), but I guess most computer already have it installed ... just a reminder.
您应该能够编译为 32 位 (x86) 并包含 32 位 PyQt 二进制文件,一切都会好起来的。 64位Windoze将在WOW64进程中运行该项目,并且不应该存在兼容性问题。
You should be able to compile to the 32-bit (x86) and include 32-bit PyQt binaries and all will be well. 64-bit Windoze will run the project in a WOW64 process, and there shouldn't be compatibility issues.