notebook: Jupyter 4 Can't Find My Anaconda Python 3 Repo

I conda update ipython and conda install jupyter without a problem. Then I opened jupyter with jupyter notebook without issue. Then, immediately, I get a kernel error saying it cannot find my Py3 kernel (see trackback below), however my Py3 kernel is my Anaconda root environment (/Users/chrisralbon/anaconda) not where it thinks, at /Users/chrisralbon/anaconda/envs/py3k/bin/python. I am not sure why it is looking there.

Traceback (most recent call last):
  File "/Users/chrisralbon/anaconda/lib/python3.4/site-packages/notebook/base/handlers.py", line 436, in wrapper
    result = yield gen.maybe_future(method(self, *args, **kwargs))
  File "/Users/chrisralbon/anaconda/lib/python3.4/site-packages/notebook/services/sessions/handlers.py", line 56, in post
    model = sm.create_session(path=path, kernel_name=kernel_name)
  File "/Users/chrisralbon/anaconda/lib/python3.4/site-packages/notebook/services/sessions/sessionmanager.py", line 66, in create_session
    kernel_name=kernel_name)
  File "/Users/chrisralbon/anaconda/lib/python3.4/site-packages/notebook/services/kernels/kernelmanager.py", line 84, in start_kernel
    **kwargs)
  File "/Users/chrisralbon/anaconda/lib/python3.4/site-packages/jupyter_client/multikernelmanager.py", line 109, in start_kernel
    km.start_kernel(**kwargs)
  File "/Users/chrisralbon/anaconda/lib/python3.4/site-packages/jupyter_client/manager.py", line 239, in start_kernel
    **kw)
  File "/Users/chrisralbon/anaconda/lib/python3.4/site-packages/jupyter_client/manager.py", line 186, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "/Users/chrisralbon/anaconda/lib/python3.4/site-packages/jupyter_client/launcher.py", line 119, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "/Users/chrisralbon/anaconda/lib/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/Users/chrisralbon/anaconda/lib/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/chrisralbon/anaconda/envs/py3k/bin/python'

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

Can you try a python -m IPython kernelspec install-self to reinstall the kernelspec ?

Quite literally, laughing out loud… I’m such a plonker sometimes.

Thank you takluyver,

Thank you!

python -m jupyter kernelspec install-self did the trick.

Fixed for me too, thanks Carreau!