Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Wrong __version__numpy__ #1542

torquil opened this Issue Nov 29, 2012 · 2 comments


None yet
3 participants

torquil commented Nov 29, 2012

When I install matplotlib using "python build setup.py" and "python install --prefix=...", one of the first lines of output in both cases is:

numpy: 1.6.2

I also have numpy 1.4 (system-wide, I am not root) and numpy 1.6.2 (home folder) installed but it is the 1.6.2 version that is used by python since I have adjusted PYTHONPATH:

$ python

import numpy

This is the numpy version that I want to use. However, after installing matplotlib 1.2.0, I get

$ python

import matplotlib

Why is matplotlib not using my numpy 1.6.2, when python itself is using it, and matplotlib detected numpy 1.6.2 during the build and install?


mdboom commented Nov 29, 2012

__version__numpy__ specifies the minimum version of numpy required by matplotlib, not the version of the currently installed numpy. To get that, as you show, use numpy.__version__.

Closing. Feel free to reopen if I misunderstood the question.

@mdboom mdboom closed this Nov 29, 2012

That confused me as well today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment