Jupyter notebook 创建Jupyter笔记本失败:写入只读数据库时出错

Jupyter notebook 创建Jupyter笔记本失败:写入只读数据库时出错,jupyter-notebook,Jupyter Notebook,我已经安装了Jupyter笔记本。 使用python 3 当我尝试创建一个新的笔记本文件时,我会看到一个弹出窗口,上面写着: 创建新笔记本时出错。 保存文件时出现意外错误:Untitled.ipynb试图写入只读数据库 从终端: [W 20:00:11.307 NotebookApp] 500 POST /api/contents (127.0.0.1): Unexpected error while saving file: Untitled.ipynb attempt to write a

我已经安装了Jupyter笔记本。 使用python 3

当我尝试创建一个新的笔记本文件时,我会看到一个弹出窗口,上面写着: 创建新笔记本时出错。 保存文件时出现意外错误:Untitled.ipynb试图写入只读数据库

从终端:

[W 20:00:11.307 NotebookApp] 500 POST /api/contents (127.0.0.1): Unexpected error while saving file: Untitled.ipynb attempt to write a readonly database         
[W 20:00:11.307 NotebookApp] Unexpected error while saving file: Untitled.ipynb attempt to write a readonly database

快速添加:我使用的是Ubuntu 18.04,唯一的工作方法是先访问
SudoBash
,然后键入:
jupyter notebook——允许root用户使用jupyter notebook而不会出现任何问题。我不能只是键入
$jupyter notebook
看起来我找到了解决方案
sudo chown-R tarik deeplearning:tarik deeplearning/home/tarik deeplearning/.local/share/jupyter
更改权限。然后需要重复该过程(检查所有权并修复),直到可以再次保存<代码>sudo chown-R tarik deeplearning:tarik deeplearning/home/tarik deeplearning/Projects/GoogleNet/.ipynb_检查点
&它可以工作。