Python 2.6.x setup.py install安装matplotlib报错信息解析,2.6.xmatplotlib,错误信息如下:runni


错误信息如下:

running installrunning bdist_eggrunning egg_infowriting requirements to lib/matplotlib.egg-info/requires.txtwriting lib/matplotlib.egg-info/PKG-INFOwriting namespace_packages to lib/matplotlib.egg-info/namespace_packages.txtwriting top-level names to lib/matplotlib.egg-info/top_level.txtwriting dependency_links to lib/matplotlib.egg-info/dependency_links.txtreading manifest file 'lib/matplotlib.egg-info/SOURCES.txt'reading manifest template 'MANIFEST.in'writing manifest file 'lib/matplotlib.egg-info/SOURCES.txt'installing library code to build/bdist.linux-x86_64/eggrunning install_librunning build_pycopying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-x86_64-2.7/matplotlib/mpl-datarunning build_extbuilding 'matplotlib._png' extensiongcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__png_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/python27/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/python27/include/python2.7 -c src/_png.cpp -o build/temp.linux-x86_64-2.7/src/_png.osrc/_png.cpp:10:20: error: png.h: No such file or directoryIn file included from /usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804,                 from /usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,                 from /usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,                 from src/_png.cpp:28:/usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"src/_png.cpp:243:48: error: macro "npy_PyFile_DupClose" requires 3 arguments, but only 2 givensrc/_png.cpp:264:44: error: macro "npy_PyFile_DupClose" requires 3 arguments, but only 2 givensrc/_png.cpp:577:44: error: macro "npy_PyFile_DupClose" requires 3 arguments, but only 2 givenIn file included from src/file_compat.h:4,                 from src/_png.cpp:31:/usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h: In function ?.yObject* npy_PyFile_OpenFile(PyObject*, const char*)?./usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h:348: warning: deprecated conversion from string constant to ?.har*?/usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h: In function ?.nt npy_PyFile_CloseFile(PyObject*)?./usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h:356: warning: deprecated conversion from string constant to ?.har*?src/_png.cpp: At global scope:src/_png.cpp:68: error: variable or field ?.rite_png_data?.declared voidsrc/_png.cpp:68: error: ?.ng_structp?.was not declared in this scopesrc/_png.cpp:68: error: ?.ng_bytep?.was not declared in this scopesrc/_png.cpp:68: error: ?.ng_size_t?.was not declared in this scope/usr/local/python27/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1629: warning: ?.nt _import_array()?.defined but not usederror: command 'gcc' failed with exit status 1

系统信息:

CentOS 6.3 64bitPython 2.6.xmatplotlib 1.3.1

参考 http://stackoverflow.com/questions/16958780/error-installing-matplotlib-python2-7-rhel-5-9

参考 http://stackoverflow.com/questions/16958780/error-installing-matplotlib-python2-7-rhel-5-9

编橙之家文章,

评论关闭