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

相关推荐
爱吃提升几秒前
python 分布式爬虫、爬虫合规与综合实战项目
分布式·爬虫·python
审小匠OpenCPAi1 分钟前
银行流水核查怎么自动化?单边匹配、双向勾稽与图聚类异常检测的工程对比
java·前端·人工智能·python·审计
元Y亨H1 小时前
Pandas 解析 Excel 导致的内存溢出(MemoryError)
python·excel
放学校门口见2 小时前
vscode部署stm32开发调试环境
ide·vscode·stm32
金銀銅鐵2 小时前
[Python] 用 turtle 来绘制瑞典国旗
python
Albert Edison2 小时前
【GUI 自动化测试】Pywinauto 常见操作
自动化测试·python·pywinauto
海兰2 小时前
【高速缓存】RedisVL为文本生成嵌入向量实践指南
人工智能·python·机器学习
2601_955760072 小时前
如何用 Claude Opus 5 API 批量扩展长尾关键词和文章选题
前端·python·搜索引擎
艾斯特_2 小时前
从模型调用到可用聊天应用:会话状态与消息协议
python·ai·aigc
Marst Code3 小时前
Python 3.9 已停止维护!从 3.9 到 3.14 全版本深度对比,生产环境该选哪个?
开发语言·python