前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Jupyter notebook 报错 500 : Internal Server Error的解决方法「建议收藏」

Jupyter notebook 报错 500 : Internal Server Error的解决方法「建议收藏」

作者头像
全栈程序员站长
发布2022-09-14 10:55:40
8.2K0
发布2022-09-14 10:55:40
举报
文章被收录于专栏:全栈程序员必看

大家好,又见面了,我是你们的朋友全栈君。

问题:

输入jupyter notebook后再浏览器点击.ipynb文件报错500 Internal Server Error,异常如下图所示

Jupyter notebook 报错 500 : Internal Server Error的解决方法「建议收藏」
Jupyter notebook 报错 500 : Internal Server Error的解决方法「建议收藏」

解决方法:

1). 先卸载jupyter并删除安装目录下的以jupyter开头的文件,再重新pip install jupyter安装jupyter,

试验后再打开jupyter notebook, 仍无法正常打开.ipynb文件,报错还是500 Internal Server Error

Jupyter notebook 报错 500 : Internal Server Error的解决方法「建议收藏」
Jupyter notebook 报错 500 : Internal Server Error的解决方法「建议收藏」

2). 输入命令python -m ipykernel install –user 安装ipykernel后仍无法正常使用jupyter,报错依旧是500.

3). 根据参考文献1,判断报错是nbconvert 和pandoc不兼容导致, nbconvert 5.4.1版本解决了该问题(参考文献2),安装nbconvert5.4.1及以后的版本即可。这里输入命令pip install –upgrade –user nbconvert安装nbconvert-5.6.1,也可以使用conda安装,命令为 conda install nbconvert-5.6.1

Jupyter notebook 报错 500 : Internal Server Error的解决方法「建议收藏」
Jupyter notebook 报错 500 : Internal Server Error的解决方法「建议收藏」

安装完nbconvert后再次使用jupyter notebook,在浏览器选择python3终于可以正常打开.ipynb文件了。

参考文献:

1. https://stackoverflow.com/questions/55185563/jupyter-notebook-500-internal-server-error

2. https://github.com/conda-forge/nbconvert-feedstock/issues/27

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/157979.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年7月1,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档