我正在尝试使用以下命令启动 ipython:python -m ipython
启动后出现以下错误:C:\Program Files\Python36\python.exe: No module named ipython
这很奇怪,因为当我运行时python -m pip show ipython,我收到以下消息:
Name: ipython
Version: 6.2.1
Summary: IPython: Productive Interactive Computing
Home-page: https://ipython.org
Author: The IPython Development Team
Author-email: ipython-dev@python.org
License: BSD
Location: c:\program files\python36\lib\site-packages
Requires: simplegeneric, setuptools, decorator, pickleshare, traitlets,
pygments, colorama, prompt-toolkit, jedi
Run Code Online (Sandbox Code Playgroud)
我已经确保所有依赖项都已正确安装。请你帮助我好吗 ?
它实际上是拼写的IPython(大写的 I 和 P 开头)。
python -m IPython
Run Code Online (Sandbox Code Playgroud)
会做。
编辑:可能会出现混淆,因为 pypi 服务允许包名称和模块名称不同。