Python 无法为';启用GUI事件循环集成;qt5和x27;
最近将Anaconda升级到4.4.0。但当我在Eclipse中打开调试器时,出现了一条错误消息:Python 无法为';启用GUI事件循环集成;qt5和x27;,python,python-3.x,pyqt,pyqt4,anaconda,Python,Python 3.x,Pyqt,Pyqt4,Anaconda,最近将Anaconda升级到4.4.0。但当我在Eclipse中打开调试器时,出现了一条错误消息:未能为“qt5”启用GUI事件循环集成,并且: 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-import
未能为“qt5”启用GUI事件循环集成,并且:
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.
不可满足错误:发现以下规范存在冲突:
-pyqt 4*->python 2.6*
-python 3.6*
使用“conda info”查看每个包的依赖项。
在Eclipse中转到首选项>PyDev>交互式控制台
。
从下拉列表中选择适当的PyQt版本(在您的案例中为PyQt5
应用更改,然后它应该会工作。如果错误仍然存在,则运行以下命令:
conda更新——全部