Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法为';启用GUI事件循环集成;qt5和x27;_Python_Python 3.x_Pyqt_Pyqt4_Anaconda - Fatal编程技术网

Python 无法为';启用GUI事件循环集成;qt5和x27;

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

最近将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-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更新——全部