How to solve the problem 'zsh: command not found: jupyter'

Viewed 3558

I bought Macbook air M1, and I tried to install jupyter notebook with this code.

pip3 install --upgrade pip

pip3 install jupyter

and I tried to open jupyter notebook with this code.

jupyter notebook

but, then, this code appeared.

zsh: command not found: jupyter

enter image description here

1 Answers

First, you need to find where it was installed.

pip3 show jupyter | grep Location

Example:

$ pip3 show pip | grep Location

Location: /usr/lib/python3/dist-packages

Then you need to ensure that the path you get is in your PATH.

Example:

$ export PATH=/usr/lib/python3/dist-packages:$PATH
Related