Spyder无法从Anaconda打开

问题描述 投票:0回答:1

最近,我不得不在新计算机上重新安装anaconda。我从anaconda的网站下载了最新版本,并像以前一样安装了它。现在,当我打开anaconda界面并尝试运行Spyder.exe时,出现以下消息:

Traceback (most recent call last):
File "C:\Users\aabramzonx0108132\AppData\Local\Continuum\anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 22, in 
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: DLL load failed: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
 Traceback (most recent call last):
    File "C:\Users\aabramzonx0108132\AppData\Local\Continuum\anaconda3\Scripts\spyder-script.py", line 
    10, in 
    sys.exit(main())
    File "C:\Users\aabramzonx0108132\AppData\Local\Continuum\anaconda3\lib\site-            
    packages\spyder\app\start.py", line 186, in main
    from spyder.app import mainwindow
    File "C:\Users\aabramzonx0108132\AppData\Local\Continuum\anaconda3\lib\site-        
    packages\spyder\app\mainwindow.py", line 90, in 
    from qtpy import QtWebEngineWidgets # analysis:ignore
    File "C:\Users\aabramzonx0108132\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\qtpy\QtWebEngineWidgets.py", line 26, in 
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

可能是我安装了错误的东西吗?

python anaconda spyder
1个回答
1
投票

这与PyQt5模块有关。要解决此问题,请尝试删除PyQt5

pip uninstall PyQt5

如果不起作用,请尝试使用重新安装

conda install -f qt=5 pyqt=5

这里类似的帖子:54869374

© www.soinside.com 2019 - 2024. All rights reserved.