Cannot open spyder in anaconda : qtpy.PythonQtError: No Qt bindings could be found [Resolved]

created at 08-04-2021 views: 57


This article is aimed at the problems encountered in the Python3 environment. If it is Python2, uninstall and install the corresponding pyqt4 version.

(base)C: \Users\admin>spyder
Traceback (most recent call last) :
    File "D:\Programminglanaconda3\lib\site-packages\qtpy\",line 204,in〈module>from PySide import _version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError : No module named 'PySide'
During handling of the above exception,another exception occurred:Traceback (most recent call last) :
    File "D:\Programming \anaconda3\Scripts\", line 10,in <module>sys.exit(main))
    File "D:\Programming \anaconda3\lib\site-packages\spyderlapp\",line 201,in mainfrom import mainwindow
    File "D: Programming \anaconda3\1ib\site-packages\spyderlapp\",line 52,in<module>requirements.check_qt)
    File "D: \Programming \anaconda3\lib\site-packages\spyder\",line 41,in check_qtimport qtpy
    File"D: \Programming\anaconda3\lib\site-packages\",line 210, in (module> raise PythonQtError ('No Qt bindings could be found')
qtpy.PythonQtError : No Qt bindings could be found


step 1

delete the original pyqt

pip uninstall pyqt5
pip uninstall pyqt5-sip

step 2

Reinstall pyqt

This error occurred due to the first installation of pyqt

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.0.4 requires pyqtwebengine<5.13, which is not installed.
spyder 5.0.4 requires pyqt5<5.13, but you have pyqt5 5.13.0 which is incompatible.

So you need to download the corresponding version:

pip install PyQt5-5.12.3-5.12.10-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl
pip install PyQtWebEngine-5.12.1-5.12.10-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl

download link:

created at:08-04-2021
edited at: 05-31-2022: