pip install jupyterlab
pip install notebook
将二进制文件发送至~/.local/bin
:
ls ~/.local/bin
ipython jupyter-bundlerextension jupyter-kernelspec jupyter-migrate jupyter-notebook jupyter-troubleshoot send2trash
ipython3 jupyter-dejavu jupyter-lab jupyter-nbclassic jupyter-run jupyter-trust wsdump
jlpm jupyter-execute jupyter-labextension jupyter-nbconvert jupyter-server pybabel
jupyter jupyter-kernel jupyter-labhub jupyter-nbextension jupyter-serverextension pyjson5
现在我应该~/.local/bin
根据用pip安装后,“jupyter:找不到命令”
但我对此感到不安。这里有一些自动安装的软件正常吗?
答案1
安装用户二进制文件以~/.local/bin
符合XDG 基本目录规范现在很常见:
用户特定的可执行文件可以存储在
$HOME
/.local/bin中。发行版应确保此目录显示在 UNIX$PATH
环境变量中的适当位置。
从上面可以看出,添加~/.local/bin
到 yourPATH
也可以。