ubuntu 下安装pyqt eric4出现问题 求助!!!!!!!!

努力的草根 2014-07-19 09:47:11
按照网上的教程逐步安装
http://blog.csdn.net/qq61394323/article/details/37885939 这里是我收集的

大概是需要几个部件sip, pyqt,Qscintilla2, eric4

但是当我在编译Qscintilla2的时候就出现下面的错误了

root@ubuntu:~/pyqtSoftware/QScintilla-gpl-2.8.4-snapshot-aae8494847ff/Python# python configure.py
Configuring QScintilla 2.8.4-snapshot-aae8494847ff...
QScintilla 2.8.4-snapshot-aae8494847ff is being used.
The QScintilla .sip files will be installed in /usr/share/sip/PyQt4.
The QScintilla module will be installed in
/usr/local/lib/python2.7/dist-packages/PyQt4.
PyQt 4.11.2-snapshot-ebd39a944b7e is being used.
Qt 5.3.1 is being used.
sip 4.16.3-snapshot-53f490fe8f52 is being used.
The sip executable is /usr/bin/sip.
The QScintilla module is being built with 'protected' redefined as 'public'.
The QScintilla API file will be installed in /usr/share/qt4/qsci/api/python.
Generating the C++ source for the Qsci module...root@ubuntu:~/pyqtSoftware/QScintilla-gpl-2.8.4-snapshot-aae8494847ff/Python# make
g++ -c -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/qt4 -I. -o sipQsciQsciLexerMatlab.o sipQsciQsciLexerMatlab.cpp
In file included from sipQsciQsciLexerMatlab.cpp:29:0:
sipAPIQsci.h:33:17: fatal error: sip.h: No such file or directory
compilation terminated.
make: *** [sipQsciQsciLexerMatlab.o] Error 1



看样子是说没有找到sip.h文件,但是sip是已经install过了
搜索了下home 电脑里面是有的,我也不知道有没有引入成功,各位大神有没有什么思路去解决它呢?
...全文
292 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
努力的草根 2014-08-02
  • 打赏
  • 举报
回复
引用 6 楼 jinjianxinxh 的回复:
apt-cache search | grep PyQt 查查有没有输出,有输出直接安装
原来这样真的可以 我直接安装eric就解决了 谢谢了
努力的草根 2014-07-27
  • 打赏
  • 举报
回复
引用 9 楼 ying_593254979 的回复:
你得把以前你用源码编译的东西删除吧。感觉linux挺不好删除的。
试过了 有个make clean 我也试过重新装过多台ubuntu同样的错误
ying_593254979 2014-07-26
  • 打赏
  • 举报
回复
你得把以前你用源码编译的东西删除吧。感觉linux挺不好删除的。
努力的草根 2014-07-25
  • 打赏
  • 举报
回复
引用 6 楼 jinjianxinxh 的回复:
apt-cache search | grep PyQt 查查有没有输出,有输出直接安装
root@ubuntu:~# apt-cache search | grep PyQt E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_main_i18n_Translation-en E: The package lists or status file could not be parsed or opened 看上去是什么缺什么东西,但是我引入pyqt4都可以成功 >>> from PyQt4 import QtGui >>> 什么原因呢?
努力的草根 2014-07-25
  • 打赏
  • 举报
回复
引用 5 楼 ying_593254979 的回复:
肯定可以的。以前在fedora 和 ubuntu下都装过PyQt。
我的另外一个虚拟机里面就成功了,也不知道自己当初安装什么了,然后再试就再也装不成功了。
jinjianxinxh 2014-07-23
  • 打赏
  • 举报
回复
apt-cache search | grep PyQt 查查有没有输出,有输出直接安装
努力的草根 2014-07-23
  • 打赏
  • 举报
回复
引用 3 楼 ying_593254979 的回复:
直接在软件中心下载,别自己编译。版本容易出现问题。
软件中心可以安装QScintilla吗? 我就是想在ubuntu下用eric去做pyqt,大哥能给出具体的步骤吗?
ying_593254979 2014-07-23
  • 打赏
  • 举报
回复
肯定可以的。以前在fedora 和 ubuntu下都装过PyQt。
啊呀 2014-07-21
  • 打赏
  • 举报
回复
不知道,帮顶下
ying_593254979 2014-07-21
  • 打赏
  • 举报
回复
直接在软件中心下载,别自己编译。版本容易出现问题。
努力的草根 2014-07-21
  • 打赏
  • 举报
回复
引用 1 楼 kkkksunday 的回复:
不知道,帮顶下
哎 很奇怪! 搞了5天了 还没搞好,只能自己在那里瞎搞

23,110

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧