How to fix: zsh: command not found: jupyter

% jupyter

zsh: command not found: jupyter

This error typically indicates that Jupyter Notebook is not installed on your Mac. To install it, you can use the following command:

pip3 install notebook

Verifying Jupyter Installation

    If you believe Jupyter Notebook is already installed, the first step is to confirm its installation location 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
    ....
    

    If you encounter a warning indicating that the package is not found, you can also use the whereis or which commands to locate Jupyter.

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

    In this case, ensure that the directory /Library/Frameworks/Python.framework/Versions/3.11/bin/ is included in your $PATH variable.

    export PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:$PATH"

    After updating your PATH, you can verify the installation by running the jupyter command again.

    Fix -zsh- command not found- jupyter

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!