traitlets.traitlets.TraitError in Pycharm

后端 未结 4 513
醉话见心
醉话见心 2021-02-07 09:33

I am a beginner in python. I am facing the following problem.

Whenever I start pycharm Community edition (version 5.0.3), the Python console fails to starts and shows th

相关标签:
4条回答
  • 2021-02-07 10:01

    I had the same issue. I solved this by updating ipython.

    My version was 3.1.0, upgrading it to 4.1.1 solved it.

    in my case:

    workon project
    pip install -U ipython
    
    0 讨论(0)
  • 2021-02-07 10:10

    I've found that this happened because I had installed ipython version 4.x, and then reverted to 3.2.0, without uninstalling the traitlets more advanced version first. This did the trick then:

    pip uninstall ipython[all]
    pip uninstall traitlets
    pip install ipython==3.2.0
    
    0 讨论(0)
  • 2021-02-07 10:11

    I initially tried unsuccessfully by trying

    pip install -U ipython
    

    But then tried following and it worked:

    pip uninstall ipython[all]
    pip uninstall traitlets
    pip install ipython
    

    Thanks @mirandes

    0 讨论(0)
  • 2021-02-07 10:12

    In my case, this was due to a conflicting installation of IPython through pip and apt. Removing the apt-installed version using sudo apt remove ipython fixed the problem.

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