자율주행

pyqt 에러로 Spyder IDE 가 열리지 않을때 처치법

coding art 2023. 2. 18. 16:47
728x90

 

https://stackoverflow.com/questions/66202005/importerror-dll-load-failed-while-importing-qtwebenginewidgets-when-running-sp

 

ImportError: DLL load failed while importing QtWebEngineWidgets: when running spyder for python

I get this issue when trying to run spyder C:\ProgramData\Anaconda3\Scripts>spyder Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\qtpy\QtWebEngineWidg...

stackoverflow.com

아래 4단계 조치를 통해서 pyqt를 제대로 설치하면 Spyder 를 띄울 수 있음을 참조하자.

 

I don't use Spyder, but I ran into this issue and managed to solve it somehow.

I had installed PyQtWebEngine like this: pip install PyQtWebEngine. However, this did not cause the proper Python39\Lib\site-packages\PyQt5\Qt5\bin\Qt5WebEngine.dll file to be created.

The solution:

  • pip uninstall PyQtWebEngine
  • pip uninstall PyQtWebEngine-qt5
  • pip install PyQtWebEngine-qt5
  • pip install PyQtWebEngine

 

또 다른 방법으로는 Open Terminal에서 puqt5를 삭제 후 직접 spyder 를 설치한다.

  • pip uninstall pyqt5
  • pip install spyder

설치가 완료되었으면 Navigation으로 돌아가서 Spydr 버튼이 Launch 로 바뀐었는지 확인 후 클릭해서 spyder를 띄운다.

 

Good Luck!