Ipython 安装配置

2021-05-16  本文已影响0人  Chris0Yang

安装 ipython

1、下载IPython安装包

wget https://files.pythonhosted.org/packages/82/0a/146b0f0f1ddf13ab8682aed5c5a42250cddf1082e193ec95b50b03b9f791/ipython-7.3.0.tar.gz

前提要安装python3

2、安装IPython

[root@localhost ~]# tar xf ipython-7.3.0.tar.gz
[root@localhost ~]# cd ipython-7.3.0
[root@localhost ipython-7.3.0]# pwd
/root/ipython-7.3.0
[root@localhost ipython-7.3.0]# python3 setup.py install

3、通过pip安装ipython所有缺失模块,直至ipython运行成功

运行ipython是提示缺少 XXX 模块;

安装提示一步步通过pip安装缺失模块,先升级pip 然后安装缺失的包

pip install --upgrade pip
pip3 install traitlets pexpect traitlets pickleshare backcall prompt_toolkit

执行ipython3 和 ipython 问题

TypeError: init() got an unexpected keyword argument 'inputhook'

upgrade选项也可以用作降级

pip3 install --upgrade --user prompt_toolkit == 2.0.10       
上一篇 下一篇

猜你喜欢

热点阅读