Running iPython from an OSX terminal

So, I am looking through the matplotlib documentation and am ready to use the Python iPython interactive shell with ipython -pylab . However, I get the following:

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

Failed to install iPython? I used easy_install as advised.

Any ideas?

<i> Update

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

+4
source share
2 answers

Failed to install iPython?

No, but it looks like you installed it using (darwinports or) macports - I assume that from your installation easy_install , since the native Apple Python system does not include extensions such as easy_install , and /opt/local/... where macports puts things.

If you're fine using Python versions for Macports and all, you need to make sure that the bin deep nested directory is on your $PATH so you can easily name things in your Terminal.app.

+4
source

Your ipython executable ipython not be in your PATH . Try locate your ipython executable on your computer and check your PATH settings. Otherwise, just reinstall.

0
source

Source: https://habr.com/ru/post/1311152/


All Articles