简体   繁体   English

启动 Jupyter 笔记本时出现 500 内部服务器错误

[英]500 internal server error when I launch Jupyter notebook

I currently decided to re-install jupyter since the kernel was continuously stopping.我目前决定重新安装 jupyter,因为 kernel 不断停止。 After having conda uninstalled ipykernel and re-installed it back, I incurred in a series of issues:在 conda 卸载 ipykernel 并重新安装后,我遇到了一系列问题:

  1. First once I opened the notebooks on jupyter a 500 internal error occurred;首先,一旦我在 jupyter 上打开笔记本,就会发生 500 内部错误;
  2. Second I tried to re-install nbconvert as suggested in some issues on the topic but nothing changed;其次,我尝试按照有关该主题的一些问题中的建议重新安装 nbconvert ,但没有任何改变;
  3. third I tried to conda re-install jupyter but now even jupyter command is not working第三,我试图 conda 重新安装 jupyter,但现在连 jupyter 命令都不起作用

I am currently on Mac OS Catalina Version 10.15.7.我目前使用的是 Mac OS Catalina 版本 10.15.7。 I have done a conda list and apparently everything is installed on the (base) environment where I am operating, namely:我已经完成了一个 conda 列表,显然所有内容都安装在我正在运行的(基本)环境中,即:

ipykernel                 6.15.2                   pypi_0    pypi
...
jupyter                   1.0.0            py38hecd8cb5_8  
jupyter-client            7.3.5                    pypi_0    pypi
jupyter-console           6.4.4                    pypi_0    pypi
jupyter-telemetry         0.1.0                    pypi_0    pypi
jupyter_client            7.3.4            py38hecd8cb5_0  
jupyter_console           6.4.3              pyhd3eb1b0_0  
jupyter_core              4.10.0           py38hecd8cb5_0  
jupyter_server            1.13.5             pyhd3eb1b0_0  
jupyterhub                2.3.1                    pypi_0    pypi
jupyterlab                3.3.2              pyhd3eb1b0_0  
jupyterlab-pygments       0.2.2                    pypi_0    pypi
jupyterlab-widgets        3.0.3                    pypi_0    pypi
jupyterlab_server         2.10.3             pyhd3eb1b0_1  
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1  

...
nbconvert                 7.0.0                    pypi_0    pypi

Am I doing something wrong?难道我做错了什么? How can I solve the issue with all the needed packages up to date?如何解决所有需要的最新软件包的问题?

EDIT: Furthermore when I type simple commands such as conda list the following appears:编辑:此外,当我键入简单的命令(如 conda list)时,会出现以下内容:

(base) MacBook-Pro-di-federico:Dropbox federiconutarelli$ conda list
Error processing line 1 of /Users/federiconutarelli/opt/anaconda3/lib/python3.8/site-packages/matplotlib-3.5.2-py3.8-nspkg.pth:

  Traceback (most recent call last):
    File "/Users/federiconutarelli/opt/anaconda3/lib/python3.8/site.py", line 169, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 553, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'

Reminder of file ignored

...

before listing the packages.在列出软件包之前。

Thank you谢谢

In my case, I had this problem (500 internal server error) since I had updated the "mistune" to the latest version.就我而言,我遇到了这个问题(500 内部服务器错误),因为我已将“mistune”更新到最新版本。

Apparently, jupyter tasks are not compatible with "mistune" >= 2.0显然,jupyter 任务与“mistune”>= 2.0 不兼容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Jupyter Notebook:500内部服务器错误 - Jupyter Notebook: 500 Internal Server Error Jupyter-notebook “500:内部服务器错误” - Jupyter-notebook “500 : Internal Server Error” Jupyter Notebook 500:内部服务器错误 - Jupyter Notebook 500 : Internal Server Error Jupyter Notebook(Ubuntu 20.04.02 LTS)“500:内部服务器错误” - Jupyter Notebook (Ubuntu 20.04.02 LTS) "500: Internal Server Error" 创建新的 jupyter 笔记本:500:内部服务器错误 - Creating new jupyter notebook: 500: Internal Server Error Jupyter Notebook 500 内部服务器错误 - 没有以前的解决方案工作 - Jupyter Notebook 500 Internal Server Error- No previous solutions work 如何解决 Jupyter notebook 中的 500 internal server error? - How to resolve 500 internal server error in Jupyter notebook? 由于“tornado.web”没有属性“异步”,如何在 jupyter 笔记本上修复“500:内部服务器错误”? - How can I fix "500 : Internal Server Error" on jupyter notebook due to 'tornado.web' not having attribute 'asynchronous'? 在 pip 安装 nbinteract 后,打开 Jupyter-Notebook 时出现内部服务器错误 - After pip installing nbinteract i got Internal Server Error when opening a Jupyter-Notebook Jupyter Notebook 500 内部服务器错误属性错误模块“打字”没有属性“AsyncGenerator” - Jupyter Notebook 500 Internal Server Error Attribute error module 'typing' has no attribute 'AsyncGenerator'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM