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

相关推荐
IVEN_16 小时前
只会Python皮毛?深入理解这几点,轻松进阶全栈开发
python·全栈
Ray Liang18 小时前
用六边形架构与整洁架构对比是伪命题?
java·python·c#·架构设计
AI攻城狮18 小时前
如何给 AI Agent 做"断舍离":OpenClaw Session 自动清理实践
python
千寻girling18 小时前
一份不可多得的 《 Python 》语言教程
人工智能·后端·python
AI攻城狮21 小时前
用 Playwright 实现博客一键发布到稀土掘金
python·自动化运维
曲幽21 小时前
FastAPI分布式系统实战:拆解分布式系统中常见问题及解决方案
redis·python·fastapi·web·httpx·lock·asyncio
孟健2 天前
Karpathy 用 200 行纯 Python 从零实现 GPT:代码逐行解析
python
码路飞2 天前
写了个 AI 聊天页面,被 5 种流式格式折腾了一整天 😭
javascript·python
曲幽2 天前
FastAPI压力测试实战:Locust模拟真实用户并发及优化建议
python·fastapi·web·locust·asyncio·test·uvicorn·workers