【问题标题】:Failed to run IPython Notebook: bash: IPython: command not found无法运行 IPython Notebook:bash:IPython:找不到命令
【发布时间】:2020-04-16 15:57:37
【问题描述】:

我已经使用 Pip3 成功安装了 Ipython 6.0.0:

pip3 install IPython

但是当试图运行命令时

Ipython

我收到了这个错误:

 bash: IPython: command not found

这是pip list 结果:

  • ipykernel (5.1.3)
  • ipython (6.0.0)
  • ipython-genutils (0.2.0)
  • ..
  • ..
  • 笔记本 (6.0.2)

这是pip3 show IPython的结果

 Name: ipython
 Version: 6.0.0
 Summary: IPython: Productive Interactive Computing
 Home-page: https://ipython.org
 Author: The IPython Development Team
 Author-email: ipython-dev@python.org
 License: BSD
 Location: /home/pi/.local/lib/python3.5/site-packages
 Requires: setuptools, traitlets, jedi, pexpect, pygments, pickleshare, simplegeneric, prompt-toolkit, decorator

【问题讨论】:

    标签: jupyter-notebook ipython


    【解决方案1】:

    这是区分大小写的问题...

    正确的排版是 IPython。

    pip 区分大小写,见Is PyPI case sensitive? IPython 安装为 ipython(小写),如您的pip3 show IPython

    bash 区分大小写...

    所以,只需输入ipython

    由于您已指定pip3,我还建议调用ipython3 以避免python2/3 混淆。

    【讨论】:

      最近更新 更多