thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

ImportError: cannot import name 'ensure_dir_exists' #1146

Closed ankitAMD closed 4 years ago

ankitAMD commented 4 years ago

(abc) assetone04@assetone04-Vostro-3490:~/Music/lending-club-loan-data$ jupyter-notebook

Traceback (most recent call last): File "/home/assetone04/anaconda2/envs/abc/bin/jupyter-notebook", line 7, in
from notebook.notebookapp import main
File "/home/assetone04/anaconda2/envs/abc/lib/python3.6/site-packages/notebook/init.py", line 25, in from .nbextensions import install_nbextension
File "/home/assetone04/anaconda2/envs/abc/lib/python3.6/site-packages/notebook/nbextensions.py", line 22, in
from jupyter_core.utils import ensure_dir_exists ImportError: cannot import name 'ensure_dir_exists'

ankitAMD commented 4 years ago

update jupyter core

                   pip install jupyter-core --upgrade

this working for me in Anaconda3 with python 3.6

https://stackoverflow.com/questions/48372019/importerror-cannot-import-name-ensure-dir-exists