当前位置:网站首页>Anaconda自带的Spyder编辑器启动报错问题
Anaconda自带的Spyder编辑器启动报错问题
2022-06-29 03:50:00 【PythonNotJava】
在试用Anaconda自带的科学编辑器的时候,出现了几个关于PyQt框架的问题(可能是Spyder是基于Pyqt5开发的,具体我也没仔细了解)。
先来看一下问题 :
No module named 'PyQt5.QtWebKitWidgets' 'PyQt5.QtWebEngineWidgets'首先是找不到PyQt5的一个子模块,我查了一下,由于版本更新,在 PyQt 5.6(+) 版本中, 新增 QtWebEngineWidgets 代替QtWebKitWidgets。
根据提示的报错路径,找到QtWebEngineWidgets.py这个文件的第27行,如下图 :

这里把27、28两行注释(删)掉 ,改成如30、31那两行,但是我不知道这样会不会对PyQt5框架的其他方面使用造成故障,建议先注释,待观察。
改完之后再次启动Spyder,会发现再次报错 :
from PyQt5.QtWebEngineWidgets import *:ImportError: DLL load failed / 找不到指定的模块,这里只需要如下安装 :
pip install PyQtWebEngine
这里在安装时可能会 如下错误(PyQt5版本太高导致不兼容Spyder),不过最后还是成功安装了该模块,而且Spyder可以正常启动了,使用暂未发现什么问题。

边栏推荐
- [nrf51][nrf52] nrfconnect installation instructions guide
- 基于redis实现的扣减库存
- How sqlserver queries and removes results with null fields in the whole column
- 自己动手搭建一个简单的网站
- 【TcaplusDB知识库】TcaplusDB-tcapulogmgr工具介绍(二)
- 【TcaplusDB知识库】TcaplusDB限制条件介绍
- The second meeting of the Second Council of Euler open source community was held, and Xinhua III, hyperfusion and Godson Zhongke became members of the Council
- 20款IDEA 神级插件 效率提升 30 倍,写代码必备
- Data collection and management [9]
- [ruoyi] ztree initialization
猜你喜欢

VG4131SxxxN0S1无线模块硬件规格书

SQL 数据记录如何上下行合并

Baidu AI Cloud service grid product CSM release 𞓜 hot public beta

The second meeting of the Second Council of Euler open source community was held, and Xinhua III, hyperfusion and Godson Zhongke became members of the Council

【TcaplusDB知识库】TcaplusDB-tcapulogmgr工具介绍(二)

Implementation of b+ tree index based on xlsx

4种分布式session解决方案

人大金仓(KingBase)导出表结构

How to keep database and cache consistent

微秒级 TCP 时间戳
随机推荐
【布里渊现象】光纤布里渊温度和应变分布同时测量系统研究
Baidu AI Cloud service grid product CSM release 𞓜 hot public beta
【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(一)
[tcaplusdb knowledge base] view tcapdir directory server
MySQL review materials (additional) case when
[data update] NPU development data based on 3568 development board is fully upgraded
Implementation of b+ tree index based on xlsx
【TcaplusDB】祝大家端午安康!
选对学校,专科也能进华为~早知道就好了
87. (cesium chapter) cesium thermal map (pasted with terrain)
使用roslaunch为Gazebo加载自定义模型时黑屏、报错问题
要不是和阿里P7聊过,我也不知道自己是个棒槌
Data collection and management [10]
Error: schema validation failed with the following error: the data path '' should not have other properties (projects)
【TcaplusDB知识库】修改业务修改集群cluster
基于redis实现的扣减库存
Yangzhou needs one English IT Helpdesk Engineer -20220216
技术:如何设计zkVM电路
Influence of air resistance on the trajectory of table tennis
中小型企业网络的组建