Centos7 安装ipython 和 ipython3

[root@localhost ~]# wget https://pypi.python.org/packages/79/63/b671fc2bf0051739e87a7478a207bbeb45cfae3c328d38ccdd063d9e0074/ipython-6.1.0.tar.gz#md5=1e15e1ce3f3f722da6935d7ac0e51346

[root@localhost ~]# tar xf ipython-6.1.0.tar.gz
[root@localhost ~]# cd ipython-6.1.0
[root@localhost ipython-6.1.0]# pwd
/root/ipython-6.1.0
[root@localhost ipython-6.1.0]# python3 setup.py install
#前提已安装python3,
#linux系统安装python3: http://www.cnblogs.com/chengd/p/7078498.html


[root@localhost ~]# 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.6/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/usr/local/lib/python3.6/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'
#运行ipython是提示缺少'traitlets'模块;
#安装提示一步步通过pip安装缺失模块
[root@localhost ~]# pip install 'traitlets'
直到ipython可以正常运行即可


posted @ 2019-02-01 16:10  撑一支船蒿  阅读(1028)  评论(0编辑  收藏  举报