运行iPython从OSX终端

2024-03-28 12:01:58 发布

您现在位置:Python中文网/ 问答频道 /正文

因此,我正在浏览matplotlib文档,准备使用I Python交互式Python shell和ipython -pylab。但我知道:

Az's MBP:~ Az$ ipython -pylab
-bash: ipython: command not found

我安装iPython失败了吗?我按照建议使用了easy_install

有什么想法吗?

更新

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin中找到的。我还是很困惑。


Tags: install文档bashmatplotlibipythoneasynotshell
2条回答

可能您的ipython可执行文件不在您的PATH中。在计算机上尝试locateipython可执行文件,并检查PATH设置。否则就重新安装。

Did I fail to install iPython?

不,但它看起来像是用(darwinports或)macports安装的——我想这是安装easy_install的地方,因为苹果自己的系统Python不包括easy_install等扩展,而/opt/local/...是macports放置东西的地方。

如果您可以使用macports的Python版本和所有版本,那么您应该确保深度嵌套的bin目录位于您的$PATH目录中,这样您就可以在Terminal.app中轻松地从那里调用东西。

相关问题 更多 >