开发者

Running iPython from the OSX terminal

So I'm going through the matplotlib documentation and prepared to use the iPython interactive Python shell with ipython -pylab. However I get this:

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

Did I fail to install iPython? I used easy开发者_如何学运维_install as advised.

Any ideas?

Update

Found it in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin. Am still confused.


Did I fail to install iPython?

No, but it looks like you installed it with (darwinports or) macports -- I imagine that's where your installation of easy_install comes from, since Apple's own system Python doesn't include extensions such as easy_install, and /opt/local/... is where macports puts things.

If you're OK with using macports' versions of Python and everything, you should ensure that deeply-nested bin directory is on your $PATH so you can call things from there easily in your Terminal.app.


Maybe your ipython executable isn't in your PATH. Try locate your ipython executable on your machine and check your PATH settings. Otherwise just reinstall.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜