我想Jupyterhub
在我的服务器上运行。我是按照说明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'
而且我绝对确定我 'configurable-http-proxy'
在运行时安装了conda install -c conda-forge jupyterhub # installs jupyterhub and proxy
.
为什么sudo
不认识jupyterhub
?我该如何解决PermissionError
?