ubuntu eric 没有模块 PyQt5.Qsci

ubuntu eric no module PyQt5.Qsci

昨天刚刚安装了Ubuntu 16.04 LTS,安装了Eric。工作正常。今天想启动 Eric 并使用 qtdesigner,但没有成功(出现错误 qtdesigner not found),因为您必须根据指南手动安装它。现在经历了这个错误:

Error in sys.excepthook:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 665, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/usr/share/eric/modules/Utilities/__init__.py", line 61, in <module>
from PyQt5.Qsci import QSCINTILLA_VERSION_STR, QsciScintilla
ImportError: No module named 'PyQt5.Qsci'

Original exception was:
Traceback (most recent call last):
File "/usr/share/eric/modules/eric6.py", line 326, in <module>
main()
File "/usr/share/eric/modules/eric6.py", line 240, in main
import Preferences
File "/usr/share/eric/modules/Preferences/__init__.py", line 36, in  <module>
from PyQt5.QtWebKit import QWebSettings
ImportError: No module named 'PyQt5.QtWebKit'

我已经手动安装了qscintilla、qt、pyqt、qtdesigner。我发现 python3 下有包含 pyqt4 和 5 的 distpackages(根据错误缺少的),我可以在终端中 运行 python3 时导入它们。如果我是 运行 Python 2 则无法导入。 我假设 eric 使用 Python2 启动,因此没有找到这些包?

我是 Linux 的新手,不知道我的方向是否正确。我尝试了网络上提供的解决方案,但错误不断出现。有什么建议么?

我有这个问题(导入错误:没有名为 'PyQt5.Qsci' 的模块),我通过以下步骤解决了它:

  1. 我打开终端并写了这个命令:pip3 install qscintilla.
  2. 通过上面的命令我的电脑开始下载qscintilla包,下载完成后开始下载pyqt5和sip包。
  3. 在第 2 步之后我写了这个命令:sudo apt-get remove eric.
  4. 然后我写了这个命令:sudo apt-get install eric.
  5. 在完成上述步骤后,我 运行 eric 输入:eric 并按 Enter 键;然后我的 eric 运行 成功了。

只需按照 Eric 下载页面上的说明进行操作,并确保在执行 install.py 脚本时使用 python3。

来自 Eric6 技术报告

Compatibility with Python ver. 3 or/and 2 From the current ver. 6, this same Eric IDE is fully Python 3 or/and 2 compatible, both considered as an executing program and as a developing environment. Indeed this same unique Eric IDE can be used with Python ver. 3 only, OR Python ver. 2 only, or Python ver. 3 AND ver. 2, together. This way offering a unique environment where to attenuate the inconveniences caused by such odd incompatibility between these two consecutive Python versions, and possibly easing the transition between them. That said, we have here decided to adopt and use Python ver. 3—and the consequently related accessories, such as primarily the related PyQt library—as the only base language for this Report 1 , and that for manifest reasons of manageability. Giving thus for granted that a fool-proof compatibility should be experienced in case of adoption of Python ver. 2.