无法为 'qt5' 启用 GUI 事件循环集成

Failed to enable GUI event loop integration for 'qt5'

最近将 Anaconda 升级到 4.4.0。但是当我在 Eclipse 中打开调试器时,出现一条错误消息:Failed to enable GUI event loop integration for 'qt5'and:

ImportError: 
Could not load requested Qt binding. Please ensure that
PyQt4 >= 4.7 or PySide >= 1.0.3 is available,
and only one is imported per session.

Currently-imported Qt library:   None
PyQt4 installed:                 False
PyQt5 installed:                 True
PySide >= 1.0.3 installed:       False
Tried to load:                   ['pyqtdefault']

我尝试通过 conda install pyqt=4 安装 PyQT4 但返回了另一个错误:

UnsatisfiableError: The following specifications were found to be in conflict:
  - pyqt 4* -> python 2.6*
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package.

在 Eclipse 中转到 Preferences > PyDev > Interactive Console。 从下拉列表中选择合适的 PyQt 版本在你的情况下它是 PyQt5

应用更改,然后它应该可以工作了。如果错误仍然存​​在,则 运行 下面的命令:

conda update --all