After installing with pip, "jupyter: command not found"

Question

After installing with pip install jupyter, terminal still cannot find jupyter notebook.

Ubuntu simply says command not found. Similar with ipython. Did pip not get install properly or something? How does Ubuntu know where to look for executables installed with pip?

Answer

Try

python -m notebook

Or, if you used pip3 to install the notebook:

python3 -m notebook

On Mac OS Catalina and brewed Python3.7

Adding a new entry to the PATH variable in ZSH

Allow docker container to connect to a local/host postgres database