Centos7 安裝ipython 和 ipython3
阿新 • • 發佈:2019-02-01
bin app html localhost star trait col 提示 linux
[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