How to fix: zsh: command not found: jupyter


% jupyter

zsh: command not found: jupyter

The most common reason for this error is Jupyter Notebook has not been installed on your Mac, you can do that by the below command,

pip3 install notebook

If you think Jupyter has been installed

The first thing you do is make sure where is Jupyter Notebook has been installed on your Mac.

 % pip3 show notebook
Name: notebook
Version: 6.5.4
Summary: A web-based notebook environment for interactive computing
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: jupyter@googlegroups.com
License: BSD
Location: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
Requires: argon2-cffi, ipykernel, ipython-genutils, jinja2, jupyter-client, jupyter-core, nbclassic, nbconvert, nbformat, nest-asyncio, prometheus-client, pyzmq, Send2Trash, terminado, tornado, traitlets
Required-by: 

If you get a warning that the package is not found, you can also try the whereis or which command.

% whereis jupyter

jupyter: /Library/Frameworks/Python.framework/Versions/3.11/bin/jupyter
% which jupyter

/Library/Frameworks/Python.framework/Versions/3.11/bin/jupyter

So in my case, I have to make sure that the PATH "/Library/Frameworks/Python.framework/Versions/3.11/bin/" is available in the $PATH variable.

export PATH="/Library/Frameworks/Python.framework/Python/3.x/bin:$PATH"
Fix -zsh- command not found- jupyter

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap