jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.67k stars 4.92k forks source link

I update anaconda in EC2, then I can't open Jupyter notebook in terminal, what should I do? #2600

Closed lc8631058 closed 7 years ago

lc8631058 commented 7 years ago

I just followed this command line to update anaconda, then when I type jupyter notebook, I got this error:

udacity@ip-172-31-25-67:~$ jupyter notebook
Traceback (most recent call last):
  File "/home/carnd/anaconda3/bin/jupyter-notebook", line 4, in <module>
    import notebook.notebookapp
  File "/home/carnd/anaconda3/lib/python3.5/site-packages/notebook/notebookapp.py", line 64, in <module>
    from .services.contents.filemanager import FileContentsManager
  File "/home/carnd/anaconda3/lib/python3.5/site-packages/notebook/services/contents/filemanager.py", line 16, in <module>
    from .filecheckpoints import FileCheckpoints
  File "/home/carnd/anaconda3/lib/python3.5/site-packages/notebook/services/contents/filecheckpoints.py", line 15, in <module>
    from . import tz
ImportError: cannot import name 'tz'

what should I do ?

takluyver commented 7 years ago

That sounds like your Jupyter installation has got corrupted. Try uninstalling it with conda and installing it again.

takluyver commented 7 years ago

Closing as I think this is most likely something going wrong with conda, not a bug we can fix.