Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jupyter notebook not working Mac despite being installed

I have jupyter notebook installed but when I try and open it I get this error. Any idea why?

Traceback (most recent call last):
  File "/usr/local/bin/jupyter", line 8, in <module>
    sys.exit(main())
  File "/Library/Python/2.7/site-packages/jupyter_core/command.py", line 247, in main
    command = _jupyter_abspath(subcommand)
  File "/Library/Python/2.7/site-packages/jupyter_core/command.py", line 134, in _jupyter_abspath
    'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.
like image 852
grizzleKat456 Avatar asked Dec 13 '25 04:12

grizzleKat456


2 Answers

One solution would be to switch to python3.

I would advise to check if python3 is installed by running python3 --version

If it is installed, pip3 install --upgrade pip and pip3 install jupyter should solve your problem, as jupyter should use python 3 in its kernel after that.

If python3 is not installed, I would suggest installing it, after which repeat the step above.

like image 116
Alexander Strakhov Avatar answered Dec 15 '25 18:12

Alexander Strakhov


not above! 1-run << brew cask install anaconda >> on terminal

after that anaconda was successfully install...

2- run << export PATH="/usr/local/anaconda3/bin:$PATH" >> on terminal

3- run << source ~/.zshrc >> on terminal and close then open terminal again

4- now run << jupyter notebook >> on terminal

now notebook will show on this path: http://localhost:8888/tree

That's all

like image 30
Armin Godworship Avatar answered Dec 15 '25 17:12

Armin Godworship