jupyter notebook报错:500:Internal Server Error的解决方法

问题描述:

打开jupyter notebook后弹出500:Internal Server Error报错,如下图所示:

jupyter notebook报错:500:Internal Server Error的解决方法_第1张图片

问题分析:

Internal Server Error 通常是由于 Jupyter Notebook 服务器发生了内部错误导致的。这可能是由于多种原因引起的,如软件包冲突、配置错误、资源耗尽等等,大多数情况下是由于nbconvert的兼容性或包损坏导致的,而nbconvert是 Jupyter Notebook 的一个重要组件,负责将 Jupyter Notebook 转换为其他格式(如 HTML、PDF 等)

解决方法一(卸载并重装nbconvert):

1、在cmd中使用如下命令先卸载nbconvert

pip uninstall nbconvert

2、然后再进行nbconvert安装

pip install nbconvert

3、重启jupyter notebook


若上述方法未解决,使用方法2:

解决方法二(补充确实包):

1、输入cmd,在base环境下输入 jupyter --version,得到以下结果:

jupyter notebook报错:500:Internal Server Error的解决方法_第2张图片

 2、切换到报错的虚拟环境下,再次输入 jupyter --version,得到以下结果:

jupyter notebook报错:500:Internal Server Error的解决方法_第3张图片

 3、对比报错的虚拟环境下的包与base环境下的包,将缺失的用 pip install 的方式补充完整

通过上述两种方法,即可解决报错问题啦:

jupyter notebook报错:500:Internal Server Error的解决方法_第4张图片

你可能感兴趣的:(jupyter,人工智能,ide,python)