在 Ubuntu 上安装 Pyqt 到替代 Python 版本
我正在使用 IPython Notebook,并且想要加速并让 qt 控制台也运行起来。但是我在 Ubuntu 10.10 上使用 Python 2.7(不是默认安装),我不太明白如何将 Pyqt 安装到这个替代 Python, ,我已经将其安装到默认的Python 2.6,但是如何将其安装到Python2.7?其他软件包使用 easy_install2.7 安装,但这不起作用。我看到的所有指南(包括此处的 SO)都没有解决安装到非默认 Python 版本的问题?
我使用configure.py和make安装了SIP,但是我的Configure.py对于pyqt失败了,说:
tom@tom-Satellite-A105:~/Downloads/PyQt-x11-gpl-4.9.1$ sudo python2.7 configure.py
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.
鉴于Configure.py应该创建make文件,我迷路了..
I am using IPython Notebook and want to ramp things up and get the qt console going as well.. But I use Python 2.7 (not the default install) on Ubuntu 10.10 I don't quite get how to install Pyqt to this alternative Python,, I have it installed to the default Python 2.6, but how can I get it installed to Python2.7? Other packages install with easy_install2.7 but this does not work. All the guides I see (including here on SO) do not address the install to a non-default Python version?
I got SIP installed using configure.py and make and make install but My Configure.py is failing for pyqt saying:
tom@tom-Satellite-A105:~/Downloads/PyQt-x11-gpl-4.9.1$ sudo python2.7 configure.py
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.
Given that Configure.py should create the make file I'm lost..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要安装Qt4的开发包。我不知道 Ubuntu 上的软件包名称,请查找“qt-devel”或类似的名称。
You need to install the development packages of Qt4. I don't know the package name on Ubuntu, look for "qt-devel" or something similar.