brew python versus non-brew ipython
<p>I installed python via brew, and made it my default python. If I run <code>which python</code>, I obtain <code>/usr/local/bin/python</code>. Also pip is installed via brew, <code>which pip</code> returns <code>/usr/local/bin/pip</code>.</p>

<p>I do not remember how I installed ipython, but I didn't do it via brew, since when I type <code>which ipython</code>, I obtain <code>/opt/local/bin/ipython</code>. Is it the OS X version of ipython?</p>

<p>I installed all libraries on this version of ipython, for example I have matplotlib on ipython but not on python. I do not want to re-install everything again on the brew python, rather continue to install libraries on this version of ipython. How can I install new libraries there? For example, Pthon Image Library, or libjpeg? </p>

<p>If possible, I would like an exhaustive answer so to understand my problem, and not just a quick fix tip.  </p>

<p>OK, so I solved by uninstalling macport (and so the ipython I was using, which was under /opt/local/bin) and installing ipython via pip. Then I re-install what I needed (e.g. jupyter) via pip.</p>

python osx ipython homebrew