使用dnf安装jupyter笔记本

时间:2019-03-17 18:21:36

标签: jupyter-notebook

我报告使用dnf安装笔记本或dnf安装jupyter-notebook在Fedora 28系统上安装jupyter笔记本时出现问题。当我运行 jupyter notebook 时,安装的代码崩溃,并且回溯显示权限问题。

File "/usr/lib/python3.6/site-packages/notebook/notebookapp.py", line 710, in _default_cookie_secret
with io.open(self.cookie_secret_file, 'rb') as f:
PermissionError: [Errno 13] Permission denied: '/run/user/1000/jupyter/notebook_cookie_secret'

我怀疑配置问题,因为/ run / user / 1000由root拥有。 设置的默认路径是:      jupyter --paths

config:
    /home/olin/.jupyter
    /usr/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter

data:
    /home/olin/.local/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter

runtime:
    /run/user/1000/jupyter

1 个答案:

答案 0 :(得分:1)

好的,简单的答案。
chmod a + r / run / user / 1000 / jupyter
chmod a + r / run / user / 1000 / jupyter / notebook_cookie_secret
解决问题。 这需要添加到文档中...