modulenotefounderror:no module named 'markupsafe._compat' (win10下安装jupyter遇到的错误)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_29985391/article/details/80738177

本来参考博文  https://www.cnblogs.com/ningskyer/articles/7590614.html


博文内容如下:#######

命令行中启动  

1
jupyter notebook

时报错如题。

卸载markupsafe再重新安装时提示如下

1
UnicodeDecodeError:  'utf-8'  codec can't decode  byte  0xd5  in  position 2: invalid continuation  byte

 是解码器错误。

 

解决方案如下:

通过 cygwin/mingw/git bash 来安装:

扫描二维码关注公众号,回复: 4620404 查看本文章
1
pip install markupsafe

 如果使用了虚拟环境virtualenv,则可以将上面python 的 site-packages中下载好的markupsafe相关包,复制到虚拟环境中即可。

##########

我在卸载markupsafe的时候,没有遇到上面的问题。但是卸载掉markupsafe又重新安装之后,把jupyter也重新安装(就是重新执行命令:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter)。之后jupyter就可以正常启动了

>>jupyter notebook 



猜你喜欢

转载自blog.csdn.net/qq_29985391/article/details/80738177
今日推荐