Qt 4.7.4的PyQt设置 [英] PyQt setup for Qt 4.7.4
问题描述
我尝试安装PyQt使用Qt开发Python应用程序。
我从 http://www.riverbankcomputing.co.uk 下载了SIP和PyQt4,并编译了这些包。 p>
但我在编译PyQt4时遇到了一个问题:
我在终端中运行python configure.py,
错误:确保您在PATH上有一个有效的Qt v4 qmake,或者使用-q
参数指定一个工作的Qt v4 qmake。
我查看了Qt设置,我看到qmake的路径定义在这里'home / user / .QtSDK / Simulator / Qt / gcc / bin / qmake'。在哪里应该是这个路径设置?
如何配置qt,所以我可以直接写入代码到Qt Creator和执行它像任何其他c ++文件例。我从诺基亚网站安装了Qt,并安装在/home/user/.QtSDK文件夹中。
谢谢。
错误消息说PyQt安装程序找不到qmake可执行文件。
运行这两个命令应该解决它:
PATH = $ PATH:〜/ .QtSDK / Simulator / Qt / gcc / bin /
export PATH
然后恢复安装。
I try to install PyQt to develop Python apps using Qt. I downloaded SIP and PyQt4 from http://www.riverbankcomputing.co.uk and compiled the packages.
But I encountered a problem while compiling PyQt4:
I ran python configure.py in the Terminal and I got:
Error: Make sure you have a working Qt v4 qmake on your PATH or use the -q
argument to explicitly specify a working Qt v4 qmake.
I looked in Qt settings and i saw the path for qmake defined here 'home/user/.QtSDK/Simulator/Qt/gcc/bin/qmake'. Where else should be this path set up?
And how can i configure qt so i can write code directly into Qt Creator and execute it from there like any other c++ file for example. I installed Qt from the Nokia website and it was installed in /home/user/.QtSDK folder.
Thanks.
The error message says that the PyQt installer cannot find the qmake executable. Running these two commands should solve it:
PATH=$PATH:~/.QtSDK/Simulator/Qt/gcc/bin/
export PATH
Afterwards, resume your installation.
这篇关于Qt 4.7.4的PyQt设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!