• 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

  • 相关阅读:
    一文带你了解TikTok广告账户以及如何进行TikTok广告投放
    Vue源码学习(4)- 异步更新
    .NET 9 预览版 3 发布
    2024年华为OD机试真题-抢7游戏-C++-OD统一考试(C卷D卷)
    Pytorch 基于ResNet-18的服饰识别(使用Fashion-MNIST数据集)
    选择排序算法:简单但有效的排序方法
    Java学习笔记4.2.2 系统类 - Runtime类
    Go 面向对象(方法)
    面向对象基础
    刷题记录:牛客NC202475树上子链
  • 原文地址:https://blog.csdn.net/weixin_42896263/article/details/133821053