【发布时间】:2018-10-11 08:16:22
【问题描述】:
我想在我的服务器上运行Jupyterhub。我从the instruction 安装了Jupyterhub。我从我的计算机和在 Ubuntu 16.04 上运行的服务器上都尝试了它。当我在没有 sudo 的情况下启动 Jupyterhub 时,我的计算机上一切正常,我可以使用我的用户登录并启动 jupyter 服务器。但是当我登录后从服务器运行 jupyterhub 时,我得到错误 500:内部服务器错误,这似乎是因为权限错误
PermissionError: [Errno 13] Permission denied
然后我尝试使用 sudo 运行 jupyterhub:sudo jupyterhub -f jc.py 其中jc.py 是我的配置文件。我看到了这个错误:
sudo: jupyterhub: command not found
第一步,我不知道为什么 sudo 不能识别 jupyterhub 命令, 正如指南所说,我使用 conda 安装 jupyterhub。
为了解决这个问题,我从路径中运行 jupyterhub:
sudo anaconda3/bin/jupyterhub -f jc.py
这次我得到了这个错误:
FileNotFoundError: [Errno 2] No such file or directory: 'configurable-http-proxy'
我确信我在运行conda install -c conda-forge jupyterhub # installs jupyterhub and proxy 时安装了'configurable-http-proxy'。
为什么sudo 无法识别jupyterhub?
我该如何解决PermissionError?
【问题讨论】:
标签: python ubuntu sudo jupyterhub