栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

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

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

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?
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/870878.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号