python 2.7 not installing matplotlib

matplotlib, python, python-2.7

Solution

You are installing a binary package which is going to expect a specific system python. You are better off building from source.

Just try installing it from pip:

pip install numpy 
pip install matplotlib

If you do not yet have pip, you can install it like this:

wget "http://peak.telecommunity.com/dist/ez_setup.py"
python ez_setup.py
easy_install pip

If any of this fails, then follow @Nolen Royalty's guide that he mentioned in the comments

Problem

Hi I'm trying to install matplotlib on my mac. I have lion OS X. my python version is `2.7.1` ( this is what it says when I run it from terminal) every time I install matplotlib, it promots this error ``` matplotlib 1.1.0 cannot be installed on this disk. matplotlib requires System python 2.7 to install. ``` I'm new to the python world and I need a tool to graph a few things... so a clear explanation is much appreciated. Thanks!

Original source

Related problems