Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing matplotlib under Windows

I'm trying to install matplotlib under Windows Vista. Both python itself and numpy are working for me.

I installed matplotlib via the executable basemap-1.0.2.win32-py2.7 and followed the official instructions. But running from matplotlib import * gives me the following error:

No module named matplotlib

Any ideas how to get matplotlib working?

like image 380
Emerson Avatar asked Nov 08 '11 22:11

Emerson


2 Answers

you can install by pip install matplotlib

Make sure that you already installed setuptools, numpy, python-dateutil, pytz, pyparsing, and cycler before that.

like image 156
gvr Avatar answered Nov 15 '22 04:11

gvr


basemap is not the installer for matplotlib.
basemap is a library of the matplotlib toolkit for plotting 2D data on maps, you need to indepently install matplotlib to use it.

You can get matplotlib from here

like image 21
joaquin Avatar answered Nov 15 '22 06:11

joaquin