Skip to content
Advertisement

Pip install Matplotlib error with virtualenv

I am trying to install matplotlib in a new virtualenv.

When I do:

JavaScript

or

JavaScript

I get this error:

JavaScript

Anyone have an idea what is going on?

Any help much appreciated.

Advertisement

Answer

Building Matplotlib requires libpng (and freetype, as well) which isn’t a python library, so pip doesn’t handle installing it (or freetype).

You’ll need to install something along the lines of libpng-devel and freetype-devel (or whatever the equivalent is for your OS).

See the building requirements/instructions for matplotlib.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement