【发布时间】:2023-04-11 10:47:02
【问题描述】:
我正在使用 IPython Notebook 并希望加快速度并让 qt 控制台也能正常运行。但我在 Ubuntu 10.10 上使用 Python 2.7(不是默认安装)我不太明白如何将 Pyqt 安装到这个替代 Python,我已将其安装到默认的 Python 2.6,但是如何将其安装到 Python2.7?其他软件包使用 easy_install2.7 安装,但这不起作用。我看到的所有指南(包括这里的 SO)都没有解决安装到非默认 Python 版本的问题?
我使用 configure.py 安装了 SIP,然后 make 和 make install,但我的 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 文件..
【问题讨论】:
-
怎么样:下载源,
tar -zxf...,cd PyQt...,python2.7 configure.py? -
我假设我必须安装 SIP 1st?同样的方式?
-
你安装了 Qt 吗?如果是,则不会更新 PATH 变量以使 'qmake' 在路径中(如错误消息中所示)帮助?
标签: python ubuntu pyqt installation