找不到 Jupyter notebook jt 命令

Adr*_*ift 6 python jupyter

我想更改 jupyter notebook 主题,所以我安装了主题:

pip install jupyterthemes
Run Code Online (Sandbox Code Playgroud)

安装似乎工作正常,但是当我尝试更改主题时:

jt -t <theme_name>
Run Code Online (Sandbox Code Playgroud)

我得到:

jt: command not found
Run Code Online (Sandbox Code Playgroud)

我试图卸载主题:

pip uninstall jupyterthemes
Run Code Online (Sandbox Code Playgroud)

但我得到了:

Skipping jupyterthemes as it is not installed
Run Code Online (Sandbox Code Playgroud)

在安装过程中我没有出错……我应该怎么做才能正确安装主题?我使用的是 Ubuntu 16.04,我用 pip 安装了 jupyter notebook。Jupyter 工作正常,只是主题不起作用

编辑:问题解决了安装 jupyterthemes:

sudo -H python3 -m pip install jupyterthemes
Run Code Online (Sandbox Code Playgroud)

现在 jt 命令被识别

小智 3

只需运行这个即可。我遇到了同样的问题,它有效。

sudo pip install jupyterthemes
Run Code Online (Sandbox Code Playgroud)