-
确认已经安装jupyter
pip3 install --upgrade pip pip3 install jupyter- 找到jupyter的安装位置
pip3 show jupyter得到类似下面的结果
➜ ~ pip3 show jupyter Name: jupyter Version: 1.0.0 Summary: Jupyter metapackage. Install all the Jupyter components in one go. Home-page: http://jupyter.org Author: Jupyter Development Team Author-email: jupyter@googlegroups.org License: BSD Location: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages Requires: notebook, ipywidgets, ipykernel, jupyter-console, qtconsole, nbconvert Required-by:根据location,我们可以找到jupyter的位置
/Library/Frameworks/Python.framework/Versions/3.7/bin/然后将这个位置添加到命令搜索的路径中。(要注意赋值的时候等号两边不要加空格)
vim ~/.zshrc (如果是bash,那就是.bashrc) 添加如下语句 export PATH=/Library/Frameworks/Python.framework/Versions/3.7/bin/:$PATH然后重载相关命令
source .zshrc- 可以正式开始使用jupyter啦
jupyter notebook
【到处是bug】zsh使用jupyter,command not found
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
相关阅读更多精彩内容
- Introduction Jupyter Notebookoffers a command shell for i...