2

我已经安装了 EPD,并且正在尝试使用 Canopy(Windows 7 64 位,学术许可证)。当我第一次启动 Canopy 时,什么都没有发生(没有 GUI,没有错误消息),我意识到这是因为我将 QT_API 设置为 pyqt。将 qt_api 更改为 pyside 允许我启动 Canopy。完成此操作后,我通过 Canopy 包管理器检查了 pyqt 是否已安装。但是 Canopy 拒绝从 QT_API 设置为 pyqt 开始。我怎样才能解决这个问题?我有一个包含 pyqt 中所有内容的大项目,所以我想使用它。

4

1 回答 1

1

Since Canopy GUI application runs in a different process than Canopy User Python, they can use different GUI backends.

At present, the Canopy GUI application is Pyside-only, because of PyQt's GPL license. I think, therefore, that Canopy GUI should be ignoring QT_API (or internally forcing it), so that you could set it however you want for your application. However from your report this does not seem to be the case.

As a workaround, the first thing that I would try would be to begin your main module (before any backend-dependent imports) by setting os.environ['QT_API'] = 'pyqt'.

于 2013-09-26T03:58:18.037 回答