Thanks for the reply. 

I guess not directly related to Django, though this virtualenv is very much 
for the purpose of a Django project and I hoped other Django users had come 
across this particular problem. 

Thankyou for the response though - do I need to install libpng in the 
virtualenv (sorry - just starting to use virtualenv) ?

Sam

On Friday, 23 March 2012 09:22:57 UTC-6, Tom Evans wrote:
>
> On Fri, Mar 23, 2012 at 3:06 PM, darwin_tech wrote:
> > I am trying to install matplotlib in a new virtualenv.
> >
> > When I do:
> >
> > pip install matplotlib
> >
> > or
> >
> > pip install
> > 
> http://sourceforge.net/​projects/matplotlib/files/​matplotlib/matplotlib-1.1.0/​matplotlib-1.1.0.tar.gz<http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.tar.gz>
> >
> > I get this error:
> >
> > building 'matplotlib._png' extension
> >
> > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -
> > DPY_ARRAY_UNIQUE_SYMBOL=MPL_​ARRAY_API -DPYCXX_ISO_CPP_LIB=1
> > -I/usr/local/include -I/usr/include -I.
> > 
> -I/home/sam/django-projects/​datazone/local/lib/python2.7/​site-packages/numpy/core/​include
> > -I. -I/usr/include/python2.7 -c src/_png.cpp -o
> > build/temp.linux-x86_64-2.7/​src/_png.o
> >
> > src/_png.cpp:10:20: fatal error: png.h: No such file or directory
> >
> > compilation terminated.
> >
> > error: command 'gcc' failed with exit status 1
> >
> > Anyone have an idea what is going on?
> >
> > Any help much appreciated.
> >
>
> (going from the error messages only)
>
> matplotlib requires libpng headers and libraries to be installed to
> compile. You don't have (at least) the headers installed.
>
> Not really related to django this, is it?
>
> Cheers
>
> Tom
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/6y-RQd9gtC8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to