jupyter-notebook - 使用 dnf 安装 jupyter notebook
问题描述
我报告了使用 dnf install notebook 或 dnf install jupyter-notebook 在 Fedora 28 系统上安装 jupyter notebook 的问题。运行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
解决方案
好的,简单的回答。
chmod a+r /run/user/1000/jupyter和
chmod a+r /run/user/1000/jupyter/notebook_cookie_secret
解决了这个问题。这需要添加到文档中...
推荐阅读
- python-3.x - 将十六进制代码列表转换为 Seaborn 调色板
- highcharts - Stacked Bar Highcharts 如何显示值
- java - 是否可以在 ingiteRepository 中使用“findbyId”方法?
- flutter - 如何在颤动的图像上设置具有不同文本的编辑文本?
- postgresql - 构造数组文字作为 PL/pgSQL 函数的输入
- c# - 如何在 wpf 中制作单行 tabitems 标题?
- php - 使用 PHP $_GET[ 在同一个 PHP 文件中显示不同的内容 - 还有其他方法吗?
- python - 在装饰器中访问 kw 参数的默认值?
- caching - 如何阻止 Windows Server 2019 上的 iisnode 缓存我的 javascript 文件?
- java - 特殊字符在编写 xml 时会产生问题