无法从Anaconda Navigator启动Spyder [英] Can't launch Spyder from Anaconda Navigator

查看:758
本文介绍了无法从Anaconda Navigator启动Spyder的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

三天前,我在玩Python,Mayavi和Jupyter Notebooks创建可视化.这需要安装PyQt5.

Three days ago I was playing around with Python, Mayavi and Jupyter Notebooks to create visualizations. This required to install PyQt5.

由于不断遇到内存错误,我决定不使用virtualenv进行测试,并在我的计算机上安装了所需的要求本地环境(当然不能解决).

Due to constantly reaching memory errors, I've decided to test without using virtualenv's and installed the needed requirements on my local environment (which of course didn't solve).

此后,我就开始使用matplotlib和其他Python库创建可视化对象,但是无法从Anaconda Navigator中启动Spyder.

After that, I was on my way to create visualizations using matplotlib and other Python libraries but can't launch Spyder from the Anaconda Navigator.

这是显示的错误

Traceback (most recent call last):
File "C:\Users\tiago\Anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 22, in 
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\tiago\Anaconda3\Scripts\spyder-script.py", line 10, in 
sys.exit(main())
File "C:\Users\tiago\Anaconda3\lib\site-packages\spyder\app\start.py", line 186, in main
from spyder.app import mainwindow
File "C:\Users\tiago\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 90, in 
from qtpy import QtWebEngineWidgets # analysis:ignore
File "C:\Users\tiago\Anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 26, in 
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

这与看起来重复的内容不同,在这种情况下,正确答案甚至无效.在这种情况下,我安装了PyQt5,这就是问题所在.

this is different than the looking like duplicate, that correct answer didn't even work in this case. In this case i had PyQt5 installed and that was the problem.

推荐答案

此问题与PyQt5安装有关.修复它的方法是将其卸载

This problem had to do with the PyQt5 installation. The way to fix it was to uninstall it

pip uninstall PyQt5

然后Spyder完美启动

and then Spyder launched perfectly

这篇关于无法从Anaconda Navigator启动Spyder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆