【已解决】报错“Exception: Jupyter command `jupyter-notebook` not found“ 及 not on PATH 问题(bash

【已解决】报错“Exception: Jupyter command `jupyter-notebook` not found“ 及 not on PATH 问题(bash,第1张

mac os 1.pip install notebook 安装

Installing Jupyter

pip install notebook
2. 安装jupyter 后,报错jupyter-notebook not found

参考报错“Exception: Jupyter command jupyter-notebook not found“ 重新安装。

pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
3. 出现permission 问题

指定--user再次安装

pip3 install --upgrade --force-reinstall --no-cache-dir jupyter --user
4. 出现安装目录not on path问题
 WARNING: The scripts jupyter-dejavu and jupyter-nbconvert are installed in '/Users/Rachel1900/Library/Python/3.8/bin' which is not on PATH.

5.解决

参考:

  • The script is installed in directory, which is not PATH
    在mac ~/.bash_profile 中增加jupyter notebook 安装路径alias jupyter='/Users/Rachel1900/Library/Python/3.8/bin/jupyter'

运行,验证。问题解决。

Rachel1900 (master #) ~
$ open ~/.bash_profile
Rachel1900 (master #) ~
$ source ~/.bash_profile
Rachel1900 (master #) ~
$ jupyter notebook

其他参考
  • Permanently add a directory to PYTHONPATH?

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/916164.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-16
下一篇2022-05-16

发表评论

登录后才能评论

评论列表(0条)

    保存