• 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可以正常运行即可


  • 相关阅读:
    05 DDMS中logcat的使用
    04项目的目录结构分析与资源引用
    03 Android之我的第一个.hello world 程序
    关于myeclipse的有关操作
    jsp运行原理分析
    JSP简介
    prepareStatement与Statement的区别
    正则表达式
    过滤器的作用和用法
    剑指Offer--数值的整数次方
  • 原文地址:https://www.cnblogs.com/handle/p/10346179.html
Copyright © 2020-2023  润新知