我试图安装最新版本的 IPython,但在清理时一直出现异常错误。我尝试了各种方法来解决这个问题。现在我下载了 1.2.1-2 版本,启动它,窗口立即关闭。从那时起我就把它删除了。现在我得到的错误如下:
$ pip3 install traitlets
Requirement already satisfied (use --upgrade to upgrade): traitlets in /usr/local/lib/python3.4/dist-packages
Cleaning up...
$ sudo ipython
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 4, in <module>
from IPython import start_ipython
File "/usr/local/lib/python3.5/site-packages/IPython/__init__.py", line 48, in <module>
from .core.application import Application
File "/usr/local/lib/python3.5/site-packages/IPython/core/application.py", line 22, in <module>
from traitlets.config.application import Application, catch_config_error
ImportError: No module named 'traitlets'
我正在运行 Ubuntu 14.04,并安装了 3.4 和 3.5 Python 版本。
任何帮助都将受到赞赏。
答案1
安装 Ipython 最简单的方法是使用蟒蛇。