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>To transfer all your packages you can use pip to freeze all of your packages installed in ipython and then install them all easily from the file that you put them in.</p>

<p><code>pip freeze &gt; requirements.txt</code></p>

<p>then to install them from the file <code>pip install -r requirements.txt</code></p>

<p>I'm not entirely sure if I understood what you're asking so if this isn't what you want to do please tell me.</p>

python osx ipython homebrew