I've been having trouble with Python, iPython and the libraries. The following points show the chain of the problematics. I'm running Python 2.7 on Mac Lion.
- iPython doesn't read the libraries of scipy, matplotlib, but it does read numpy.
- To fix this, I tried installing Python's source code version, and it only gave me more problems since now I have two different versions: 2.7.1 and 2.7.2
- I noticed that running Python, uses version 2.7.2 and does import scipy, matplotlib, and numpy, but on iPython the version is 2.7.1 which doesn't open scipy or matplotlib.
I've tried several things that I've encountered from other blogposts. But none of them have helped, and also unfortunately I don't quite know what I'm doing with some of them. For example: I tried uninstalling and reinstalling ipython with easy_install and pip. I also tried reinstalling everything through homebrew, and modifying the path .bash_profile.
ipython
script is "tied" to the specific Python version it was installed with – it won't automatically switch to what you installed last. If you first installed 2.7.1, then IPython, then 2.7.2 from source, your IPython will keep using 2.7.1. You need to either undo all your flailing, go back to your original Python version and figure out what the reason was behind point 1; alternately, reinstall IPython using whichever Python install can access the libraries you need. – Anisoleipython
executable is placed on your PATH. If you then install Python 2.7.2 from source, it's a new, separate copy of Python it won't upgrade the existing 2.7.1 that has IPython in it. So IPython won't see the 2.7.2 copy, or any libraries in it. – Anisole