本来参考博文 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 来安装:
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