在Ubuntu 13.04上安装Eric5时出错(无法导入名称Qsci)

2024-05-20 00:01:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我主要是按照这里的指示http://ubuntuforums.org/showthread.php?t=1865840让Eric5运行。到目前为止我还没有成功。在

我已经从源代码构建了所有东西,但是当我尝试安装Eric时,我收到了一条消息:

patrick@Sat1:~/Downloads/eric5-5.3.6$ sudo python3 install.py
Checking dependencies
Python Version: 3.3.1
Found PyQt4
Found QtHelp
Sorry, please install QScintilla2 and
its PyQt4 wrapper.
Error: cannot import name Qsci

然而,Qscintilla似乎安装得很好。以下是从中得出的结果:

^{pr2}$

运行IPython并尝试from PyQt4 import Qsci也会导致ImportError。我不知道该怎么做,因为安装时没有任何错误,而且我没有错过任何步骤。怎么了?在


Tags: installorgimporthttp消息源代码phppyqt4
2条回答

我通过以下方式解决这个问题: sudo apt get install python3-pyqt4.qsci ipython3 python-qScintilla2

我的环境是ubuntu12.0464bits。在

您是否已将/usr/share/sip添加到PYTHONPATH环境变量中?在

你有充分的理由不使用现有的软件包吗?它将使维护/升级/安装具有依赖关系的其他软件包变得更加简单。在

[chickpea ~/src/python]$ sudo apt-get install python3-pyqt4.qsci
...

The following extra packages will be installed:
  libqscintilla2-9 libqscintilla2-translations
The following NEW packages will be installed:
 libqscintilla2-9 libqscintilla2-translations python3-pyqt4.qsci
0 upgraded, 3 newly installed, 0 to remove
...

[chickpea ~/src/python]$ ipython3
[python/ 1 ]& from PyQt4 import Qsci
[python/ 2 ]& Qsci.QSCINTILLA_VERSION_STR
     Out[2]: '2.7.1'

相关问题 更多 >