Eco*_*oob 3 python terminal homebrew jupyter jupyter-notebook
我在学校有作业,我应该通过从终端运行 Jupyter Notebook 并在本地托管它来使用它。我第一次这样做时,一切顺利,直到我尝试在浏览器上退出它,但什么也没发生,所以我只是关闭了浏览器和终端窗口。从那时起,我收到了标题“缺少或畸形的翻译设置架构”中所写的错误。
我用谷歌搜索并查看了解决方案,尝试过但没有任何运气。大多数人谈论的是 Anaconda 和其他他们必须卸载和更新的东西,但无论如何我都不使用这些。我尝试了这个我认为可能有效的方法,但不幸的是它没有成功。
错误是:
[W 2023-08-30 20:55:30.861 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-08-30 20:55:30.861 JupyterNotebookApp] Settings directory does not exist at /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/share/jupyter/lab/schemas
[W 2023-08-30 20:55:30.908 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-08-30 20:55:30.908 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1693421730904 (::1): Schema not found: /opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json
最近,当我在 MacOS 中通过 pip 更新 Jupyter Notebook 时,遇到了完全相同的错误。我不确定究竟发生了什么,但似乎安装和环境中的某些内容已损坏。
我发现这个 GitHub 问题有一个解决方案,可以帮助我解决这个错误(显然也适用于更多其他人)
基本上重新安装jupyterlab(无论您使用 Jupyter Lab 还是 Jupyter Notebook Classic)
pip3 uninstall jupyterlab
pip3 install jupyterlab
jupyter lab build
jupyter lab
jupyter notebook
在 Github 线程评论中,他们安装了特定版本的 jupyterlab (3.6.3),但在我的情况下不需要,因为我安装了最新版本。
| 归档时间: | 
 | 
| 查看次数: | 1966 次 | 
| 最近记录: |