jupyter崩溃进不去,报错module ‘mistune‘ has no attribute ‘BlockGrammar‘

是python包引起的问题

E 2023-10-14 08:40:25.414 ServerApp Uncaught exception GET /api/nbconvert?1697244025327 (127.0.0.1)

HTTPServerRequest(protocol='http', host='localhost:8090', method='GET', uri='/api/nbconvert?1697244025327', version='HTTP/1.1', remote_ip='127.0.0.1')

Traceback (most recent call last):

File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/tornado/web.py", line 1713, in _execute

result = await result

File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/jupyter_server/services/nbconvert/handlers.py", line 34, in get

from nbconvert.exporters import base

File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/nbconvert/init .py", line 3, in

from . import filters, postprocessors, preprocessors, writers

File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/nbconvert/filters/init .py", line 8, in

from .markdown import *

File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/nbconvert/filters/markdown.py", line 13, in

from .markdown_mistune import markdown2html_mistune

File "/home/yyang/anaconda3/envs/torch10_py381/lib/python3.8/site-packages/nbconvert/filters/markdown_mistune.py", line 37, in

class MathBlockGrammar(mistune.BlockGrammar):

AttributeError: module 'mistune' has no attribute 'BlockGrammar'

W 2023-10-14 08:40:25.416 ServerApp wrote error: 'Unhandled error'

uninstall所有jupyter的包,重新install版本

这是2023年10月14日可以完美安装的包

IPython : 7.34.0

ipykernel : 6.20.0

ipywidgets : 8.1.1

jupyter_client : 8.1.0

jupyter_core : 5.4.0

jupyter_server : 2.7.3

jupyterlab : 4.0.7

nbclient : 0.6.0

nbconvert : 6.5.4

nbformat : 5.7.0

notebook : 6.5.4

相关推荐
SelectDB9 小时前
Apache Doris Python UDF:让 SQL 直接调用 Python 生态,支撑 Agent 时代复杂业务逻辑
大数据·数据库·python
荣码16 小时前
GraphRAG:普通RAG只能回答"点"的问题,我踩了4个坑才搞懂
java·python
金銀銅鐵1 天前
[Python] 基于欧几里得算法,实现分数约分计算器
python·数学
Lyn_Li1 天前
Kaggle Top 5 | 198只股票、200条数据的金融预测——BattleFin高分方案从零复现
python·kaggle·比赛复盘·金融预测
小九九的爸爸1 天前
前端想要入门Agent开发,要具备哪些Python基础?
python·agent·ai编程
阿耶同学1 天前
手把手教你用 LangGraph 搭建三层嵌套 Agent 架构
python·程序员
花酒锄作田2 天前
Pydantic校验配置文件
python
hboot2 天前
AI工程师第四课 - 深度学习入门
pytorch·python·神经网络
ZhengEnCi3 天前
P2M-Matplotlib折线图完全指南-从数据可视化到趋势分析的Python绘图利器
python·matlab·数据可视化
ZhengEnCi3 天前
P2L-Matplotlib饼图完全指南-从数据可视化到图表定制的Python绘图利器
python·matlab