我想在 Mac OS 10.10 中使用 ipython。
问题:
返回
所以...
最终,
有人能告诉我哪里做错了吗?
问题:
$ ipython
返回
-bash: ipython: command not found
上下文:
我在MacOS 10.10上运行Python2.7。我通过brew安装了Python。一些信息:
which python
=
/usr/local/bin/python
brew info python
=
python: stable 2.7.10 (bottled), HEAD
Interpreted, interactive, object-oriented programming language
https://www.python.org
/usr/local/Cellar/python/2.7.10_2 (4977 files, 77M) *
To install ipython I ran
pip install ipython[all]
所以...
pip show ipython =
---
Metadata-Version: 2.0
Name: ipython
Version: 4.0.0
Summary: IPython: Productive Interactive Computing
Home-page: http://ipython.org
Author: The IPython Development Team
Author-email: ipython-dev@scipy.org
License: BSD
Location: /usr/local/lib/python2.7/site-packages
Requires: traitlets, pickleshare, simplegeneric, decorator, gnureadline, appnope, pexpect
最终,
echo $PATH =
。/Users/[username]/depot_tools:/usr/local:/usr/local/lib:/Users/[username]/depot_tools:/usr/local:/usr/local/lib:/usr/local/lib/python2.7/site-packages:/Users/[username]/depot_tools:/usr/local:/usr/local/lib:/usr/local/git/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin
有人能告诉我哪里做错了吗?
python -m IPython --version
会打印什么? - celpython -m IPython
来调用它)。但由于某些原因,你没有得到符号链接。重新安装可能会有所帮助。 - celipython
为python -m IPython
。 - cel