指定 JupyterHub 路径变量

Specifying JupyterHub Path Variable

我正在安装 jupyterhub。我使用以下方法成功安装了 jupyterhub:

python3 -m pip install jupyterhub
npm install -g configurable-http-proxy

但是,当我在 Windows 命令提示符中 运行 jupyterhub -h 时,它给出:

"jupyterhub" is not recognized as an internal or external command, operable
program or batch file.

我将 C:\Users\User\AppData\Local\Continuum\Anaconda3\Lib\site-packages\jupyterhub\ 添加到我的用户环境变量中,但仍然收到消息。我应该使用什么路径?

请注意,根据 this,Windows 尚未正式支持 Jupyterhub。

除此之外,您可以将其 docker 化,让您的生活更轻松。对于此错误,请检查您是否可以在 C:\Program Files\Continuum Analytics\Anaconda3\scripts 中看到可执行文件。您指定的 lib 目录包含 python 源文件和 可执行文件。

我遇到了同样的问题,我发现这是因为 jupyterhub 是一个 python 脚本而不是可执行文件。因此,为了在 Windows 上 运行,我需要像 python C:\Program Files\Continuum Analytics\Anaconda3\scripts\jupyterhub 一样执行它。

但是,我仍然无法在 Windows 上 运行 jupyterhub,因为它依赖于 pwd 模块,这是一个 Unix/Linux 唯一的模块。

正如其他人所说,Windows 不是受支持的平台。 JupyterHub 最适合在 Linux 类平台上使用 Docker 或类似于容器化每个用户会话的平台。

一个好的替代方法是安装 Oracle VirtualBox 和 运行 本地 VM。我 运行 64 位 Ubuntu 并且它的性能非常好。 运行 JupyterHub 让事情变得更容易。除了取决于 pwd,还有关于用户创建和其他 Windows 无法很好处理的活动的假设。

简而言之,如果您想 运行 在本机 Windows 上,您将成为第一个 JupyterHub Windows 贡献者。我看着这样做,但看起来太费力了。

运行安装 VM 的好处在于,VM 中的行为将更接近于您 运行安装在服务器上的行为。如果您不打算在服务器上 运行ning,那么只需 "jupyter notebook",因为这就是 JupyterHub 最终 运行ning...