简体   繁体   中英

Failed to enable GUI event loop integration for 'qt5'

Recently upgraded Anaconda to 4.4.0. But when I turned on debugger in Eclipse there is an error message: 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']

I tried to install PyQT4 by conda install pyqt=4 but another error was returned:

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.

In Eclipse go to Preferences > PyDev > Interactive Console . From drop-down list choose appropriate PyQt version in your case it's PyQt5

在此输入图像描述

Apply changes and after that it should work. If error still persist then run below command:

conda update --all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM