22 Mart 2012, PERŞEMBE
Pip, virtualenv ile Matplotlib hata kurun
Yeni bir virtualenv içinde matplotlib yüklemeye çalışıyorum.
Ben ne zaman:
pip install matplotlib
ya
pip install http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.tar.gz
Bu hata alıyorum:
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
Herkes neler oluyor bir fikrin var mı?
Herhangi bir yardım çok takdir.
CEVAP
23 Mart 2012, Cuma
Bina Matplotlib pip
(freetype
) yükleme kolu yok yani python Kütüphanesi değil libpng
(7 ** gibi) gerektirir.
libpng-devel
freetype-devel
satır (veya eşdeğeri işletim sistemi için her ne ise) boyunca bir şey yüklemeniz gerekir.
Matplotlib için building requirements/instructions bkz.
Bunu Paylaş:
pip lxml hata kurun ...
Böyle büyük mükafat 4 - "Geçerli ...
Demlemek kullanırken SHA1 hata kurun...
Cocoapods hata kurun...
Pod hata kurun...