因此,我正在浏览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
中找到的。我还是很困惑。
可能您的
ipython
可执行文件不在您的PATH
中。在计算机上尝试locate
ipython可执行文件,并检查PATH
设置。否则就重新安装。不,但它看起来像是用(darwinports或)macports安装的——我想这是安装
easy_install
的地方,因为苹果自己的系统Python不包括easy_install
等扩展,而/opt/local/...
是macports放置东西的地方。如果您可以使用macports的Python版本和所有版本,那么您应该确保深度嵌套的
bin
目录位于您的$PATH
目录中,这样您就可以在Terminal.app中轻松地从那里调用东西。相关问题 更多 >
编程相关推荐