如何在 OS X Snow Leopard 上安装 QT、PyQT 和 PySide 的步骤
我在 Snow Leopard 上安装 QT 时遇到了一些问题,我希望我能从其他经历过这种情况的人那里受益。 :)
我假设我需要使用 SL 中未包含的 python 版本...可以是 homebrew、macports、python.org 等。
任何人都可以给我一些简单的步骤来获取 QT 、PyQT 和 PySide 安装了吗?有关如何设置项目以将 py2app 与所有这些一起使用的示例的奖励积分。
谢谢! :)
I've had some problems installing QT on Snow Leopard and I'm hoping that I can benefit from someone else who's been in this position. :)
I'm assuming that I'll need to use a version of python that's not included with SL... be it from homebrew, macports, python.org, etc.
Can anyone give me some simple steps to follow to get QT, PyQT, and PySide installed? Bonus points for an example of how to setup a project to use py2app with all this.
Thanks! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您想尝试 PySide,可以按照以下步骤操作:
http://blogger-mikael.blogspot.com/2010/09/compiling-pyside-for-qt-47-on-os-x.html
If you want to try out PySide, you can follow these steps:
http://blogger-mikael.blogspot.com/2010/09/compiling-pyside-for-qt-47-on-os-x.html
只需使用适用于 OS X 的 PyQt + Qt + Python 的二进制发行版,然后手动安装 PySide 即可。例如,有: http://sourceforge.net/projects/pyqt-mac/files/ ,但相关网站似乎已经消失。
只是想知道,为什么要同时使用 PyQt 和 PySide?
Just use a binary distribution of PyQt + Qt + Python for OS X, and then install PySide manually. For example, there's: http://sourceforge.net/projects/pyqt-mac/files/ , but it appears that the associated web site has vanished.
Just wondering though, why would you use both PyQt and PySide?
如果您想在 Snow Leopard 上安装 QT,这可能会帮助您...
根据 这个 bug报告,4.8.0 版本仅与 OS X Lion 捆绑在一起。使用 4.8.0 版本将导致如下错误:
换句话说,您将需要使用 4.7.0 版本,直到该问题得到纠正。 Homebrew 引用的是 4.8.0,因此您必须使用独立安装程序。这是 QT 4.7.0 Snow 的链接Leopard 安装程序。
关于PyQT和PySide,我无法帮助你。我对Python一无所知。 =/
If you want to install QT on Snow Leopard, this might help you...
According to this bug report, the 4.8.0 release was bundled for OS X Lion only. Using the 4.8.0 release will result in errors like:
In other words, you will need to use the 4.7.0 release until this is remedied. Homebrew is referencing 4.8.0, so you'll have to use the standalone installer. Here is the link for the QT 4.7.0 Snow Leopard installer.
In regards to PyQT and PySide, I can't help you there. I don't know anything about Python. =/
看来对于SL上的Qt 5.x,你需要编译它。
本页介绍了如何执行此操作。
然而,在 SL 上首先安装了最新的 XCode 3.2.6 后,安装运行顺利。仅当运行 Qt Creator 时,才会出现一些错误消息:
It seems that regarding Qt 5.x on SL, you need to compile it.
This page explains how to do so.
However, having first installed the latest XCode 3.2.6 on SL, the setup runs smoothly. It's only when running Qt Creator that a few error messages start to appear: