pyqt和eric python ide的安装
Tofloor
poster avatar
Feelup
deepin
2017-10-29 18:58
Author
最近在看一本关于python的书,但要求安装pyqt4,从https://www.riverbankcomputing.com 下载了安装程序,编译安装提示需要安装SIP,又下载了SIP编译安装,继续编译pyqt时,报错如下:
Determining the layout of your Qt installation...
Error: /usr/bin/qmake failed to create a makefile. Make sure you have a working
Qt qmake on your PATH or use the -q argument to explicitly specify a working Qt
qmake

到这就不明白怎么继续了;
后来在网站上看到eric python ide,想直接安装这个IDE使用,但看网站上的介绍,还是需要安装pyqt4等软件,请问各位有谁知道怎么安装吗?
Reply Favorite View the author
All Replies
avatar
yueloong
deepin
2017-10-29 19:20
#1
sudo apt-get install libxext6 libxext-dev libqt4-dev libqt4-gui libqt4-sql
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer
sudo apt-get install python-qt4
sudo apt-get install python-qt4-*
sudo apt-get install python-qscintilla2

sudo apt-get install python3-pyqt4
sudo apt-get install python3-pyqt4.qsci
sudo apt-get install python3-pyqt4.qtsql
sudo apt-get install python3-pyqt4.phonon
Reply View the author
avatar
155******38
deepin
2017-10-29 19:20
#2
你看看你qmake安装了没有,安装了话,加到环境变量里面去.
Reply View the author
avatar
Feelup
deepin
2017-10-29 19:37
#3
https://bbs.deepin.org/post/147413
sudo apt-get install libxext6 libxext-dev libqt4-dev libqt4-gui libqt4-sql
sudo apt-get install qt4- ...

多谢,但是这个第一步就提示无法定位软件包 libqt4-gui
是源的问题吗?我用的阿里的源
Reply View the author
avatar
Feelup
deepin
2017-10-29 19:46
#4
https://bbs.deepin.org/post/147413
你看看你qmake安装了没有,安装了话,加到环境变量里面去.

我通过命令apt install qt4-qmake安装了qmake。但编译时报错如下
nano@GBooter:~/下载/PyQt4_gpl_x11-4.12.1$ sudo python configure.py Determining the layout of your Qt installation...
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
nano@GBooter:~/下载/PyQt4_gpl_x11-4.12.1$ sudo python configure.py --verbose
Determining the layout of your Qt installation...
/usr/bin/qmake -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o qtdirs.o qtdirs.cpp
qtdirs.cpp:1:10: fatal error: QCoreApplication: 没有那个文件或目录
#include
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
qtdirs.mk:201: recipe for target 'qtdirs.o' failed
make: *** [qtdirs.o] Error 1
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.

Reply View the author
avatar
155******38
deepin
2017-10-29 19:58
#5
你还是qt开发环境没安装完整.百度一篇文章,把常用的qt的dev包安装完差不多了.QCoreApplication: 没有那个文件或目录,这个明显是qt缺少组件.你试试apt-get install libqt4-dev.
Reply View the author
avatar
Feelup
deepin
2017-10-30 00:51
#6
(•̀⌄•́)要是deepin能直接打包这个软件放到商店里就好了。一键安装ヾ(●´∇`●)ノ哇~
Reply View the author
avatar
leixiaozeng
deepin
2017-10-30 20:04
#7
https://bbs.deepin.org/post/147413
(•̀⌄•́)要是deepin能直接打包这个软件放到商店里就好了。一键安装ヾ(●´∇`●)ノ哇~ ...

商店里不是有ERIC吗???
Reply View the author