Centos7 安装ipython 和 ipython3
Posted 撑一支船蒿
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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可以正常运行即可
以上是关于Centos7 安装ipython 和 ipython3的主要内容,如果未能解决你的问题,请参考以下文章