我正試圖在新的virtualenv中安裝matplotlib。Pip用virtualenv安裝Matplotlib錯誤
當我這樣做:
pip install matplotlib
或
pip install http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.tar.gz
我得到這個錯誤:
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
人有一個想法是怎麼回事?
任何幫助非常感謝。
您還可以看到'下面需要的軟件包不能建: freetype,png',這是(我認爲)更新版本的「pip」中的相同錯誤。 – LondonRob 2015-07-27 17:06:26