ImportError: cannot import name 'ensure_dir_exists'

前端 未结 6 1060
一整个雨季
一整个雨季 2020-12-05 10:12

I update the Jupyter notebook from the old version to latest 5.3.1. However, when I try to launch the notebook from anaconda, it throws an import error: I tried to remove an

相关标签:
6条回答
  • 2020-12-05 10:18

    update jupyter core

    pip install jupyter-core --upgrade
    

    this working for me in Anaconda3 with python 3.6

    0 讨论(0)
  • 2020-12-05 10:23

    If you've installed jupyter using pip3.

    pip3 install --upgrade jupyter_core jupyter_client
    
    0 讨论(0)
  • 2020-12-05 10:27

    I've met the same problem when I use ipython notebook .

    After I tried upgrade jupyter, then I tried reinstall the ipython. The import error seem fixed.

    pip3 uninstall ipython

    pip3 install ipython

    0 讨论(0)
  • 2020-12-05 10:30

    When I tried to install R the notebook was upgraded to 5.3.1 and same problem appeared, however the highest vote answer apparently didn't work for me.

    What I did was:

    conda uninstall jupyter notebook
    

    then:

    conda install jupyter notebook
    

    and the problem solved with the old version.

    0 讨论(0)
  • 2020-12-05 10:33

    You need to update jupyter_core and jupyter_client manually from your terminal:

    conda update jupyter_core jupyter_client
    
    0 讨论(0)
  • 2020-12-05 10:34

    I had a similar issue on Ubuntu after installing RStudio on my system. To solve it, first I tried @MichaelCara suggestion to update jupyter. However, after that I got the following new message error:

    ImportError: libsodium.so.23: cannot open shared object file: No such file or directory

    which I solved installing libsodium as explained here.

    In short:

    conda update jupyter_core jupyter_client jupyter_console
    conda install libsodium

    0 讨论(0)
提交回复
热议问题