I am attempting to install Jupyter on my MacBook Air (OS Sonoma 14.7) but am having difficulties. Below I will list the criteria of my situation and also reference several related questions and point out why they do not help me. I am very novice with OS / installation / path issues / advanced use of the zsh terminal.
Thank you very much for any help.
I have Python 3.9 installed
murray@Murrays-MacBook-Air ~ % python3 --version Python 3.9.0
I (think) I have latest pip installed
murray@Murrays-MacBook-Air ~ % pip3 --version pip 24.3.1 from /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip (python 3.9)
I installed Jupyter using the command
pip3 install jupyter
The installation output gives some warnings:
WARNING: Ignoring invalid distribution - (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages) WARNING: Ignoring invalid distribution -ip (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages) WARNING: Ignoring invalid distribution - (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages) WARNING: Ignoring invalid distribution -ip (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages) WARNING: Ignoring invalid distribution - (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages) WARNING: Ignoring invalid distribution -ip (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages)
Calling Jupyter does not work
murray@Murrays-MacBook-Air ~ % jupyter lab
zsh: command not found: jupyter
murray@Murrays-MacBook-Air ~ % jupyter
zsh: command not found: jupyter
murray@Murrays-MacBook-Air ~ % jupyter-lab
zsh: command not found: jupyter-lab
Calling Jupyter in this way does work (the notebook opens):
murray@Murrays-MacBook-Air ~ % python3 -m jupyter lab
Asking terminal which Jupyter is installed does not work:
murray@Murrays-MacBook-Air ~ % which -a jupyter jupyter not found
murray@Murrays-MacBook-Air ~ % which -a jupyter lab jupyter not found lab not found
murray@Murrays-MacBook-Air ~ % which -a jupyterlab jupyterlab not found
murray@Murrays-MacBook-Air ~ % which -a jupyter-lab jupyter-lab not found
I have seen this very similar question, but the main answer is to use the command python3 -m jupyterlab... however I would like to discover the root issue as to why simply jupyterlab does not work. I am also trying to set up Jupyter to use with R as described here, but I don't want to trouble shoot that error until my main installations are working completely.
Thanks!