2017-08-07 41 views
1

最近將Anaconda升級到4.4.0。但是,當我在Eclipse中開啓調試器有一個錯誤信息:Failed to enable GUI event loop integration for 'qt5'和:無法爲'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. 

回答

2

在Eclipse中去Preferences > PyDev > Interactive Console。 從下拉列表中選擇合適的PyQt的版本在你的情況下,它PyQt5

enter image description here

應用更改之後,它應該工作。如果錯誤仍然存​​在,則在命令下面運行:

conda update --all