运行jupyter notebook的时候报错:

ImportError: cannot import name 'soft_unicode' from 'markupsafe' 

在这里插入图片描述
可能是因为版本过高或者低:
1,更新markupsafe版本,然后重启jupyter notebook,使用如下代码更新:

pip install --upgrade markupsafe

2,降低markupsafe版本,然后重启jupyter notebook。需要先卸载已有markupsafe,然后重新安装,代码如下:

卸载:pip uninstall markupsafe 
安装:pip install markupsafe==1.1.1
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐