0

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!

1
  • 1
    Maybe try JupyterLab Desktop instead? See here. It is supposed to be the easiest way to install JupyterLab on a system. You should though read at that link how to use it correctly because it has its own project management approach. I would start with the end here and see how you should be installing an R kernel in it. Or maybe first search for something newer than that on installing other kernels in JupyterLab Desktop and use that as a guide. Commented Jan 14 at 1:10

1 Answer 1

1

The system can call python3 but not its libraries, it seems that you need to include pythonpath of the library to the environment variable so that the terminal can execute jupyter. adding python library pythonpath

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.