Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named traitlets.config.application

I have installed ipython through apt-get install ipython on Ubuntu 14.04 and my python version is 2.7.6. When I ran ipython in the console, I faced this error and I could not find any similar problems on any site. Can someone help me?

Traceback (most recent call last):
  File "/usr/local/bin/ipython", line 4, in <module>
    from IPython import start_ipython
  File "/usr/local/lib/python2.7/dist-packages/IPython/__init__.py", line 47, in <module>
    from .core.application import Application
  File "/usr/local/lib/python2.7/dist-packages/IPython/core/application.py", line 22, in <module>
    from traitlets.config.application import Application, catch_config_error
ImportError: No module named traitlets.config.application
like image 404
Wei Zhu Avatar asked May 26 '15 22:05

Wei Zhu


1 Answers

As @user3682792 says, just doing

sudo pip install traitlets

Fixed this issue for me. Thanks!

like image 142
crazy2be Avatar answered Oct 18 '22 11:10

crazy2be