Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter error: "No module named jupyter_core.paths"

Trying to open Jupyter Notebook (OSX 10.11.4) I get the following error:

$ jupyter-notebook
Traceback (most recent call last):
  File "/usr/local/bin/jupyter-notebook", line 7, in <module>
    from notebook.notebookapp import main
  File "/Users/geotheory/Library/Python/2.7/lib/python/site-packages/notebook/__init__.py", line 25, in <module>
    from .nbextensions import install_nbextension
  File "/Users/geotheory/Library/Python/2.7/lib/python/site-packages/notebook/nbextensions.py", line 23, in <module>
    from jupyter_core.paths import jupyter_data_dir, jupyter_path, SYSTEM_JUPYTER_PATH
ImportError: No module named jupyter_core.paths

This used to work. Any idea how to diagnose?

like image 810
geotheory Avatar asked Apr 07 '16 17:04

geotheory


3 Answers

I have encountered similar issue. Basically, I solved it by uninstall python2.7 and re-install newer python & IPython versions.

Details on how to effectively uninstall python2.7 via Mac OS command line is here: How to uninstall Python 2.7 on a Mac OS X 10.6.4?

Re-install desired version of IPython via command line. In my case, I also needed to re-install Jupyter via:

$ pip install jupyter

Good luck.

like image 141
David C. Avatar answered Nov 01 '22 02:11

David C.


I had the same issue, fixed by simply using pip install jupyter in the macOS terminal.

like image 28
Spencer Goff Avatar answered Nov 01 '22 03:11

Spencer Goff


I faced the same issue, and was able resolve with the following steps.

conda create -n py36 python=3.6
conda activate py36
conda install notebook ipykernel jupyterlab

like image 8
Nagaraju Budigam Avatar answered Nov 01 '22 01:11

Nagaraju Budigam