错误:命令' gcc'安装matplotlib

时间:2016-10-07 07:07:17

标签: python-2.7

When installing matplotlib 1.3.0, getting below error 

building 'matplotlib._png' extension
gcc -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/include -I/usr/include -I. -I/usr/include/libpng12 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include/python2.7 -c src/_png.cpp -o build/temp.linux-x86_64-2.7/src/_png.o
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1781,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/_png.cpp:28:

/usr/local/lib/python2.7/site - enter code here packages / numpy / core / include / numpy / npy_1_7_deprecated_api.h:15:2:警告:#warning"使用已弃用的NumPy API,通过"禁用它" #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"     src / _png.cpp:在成员函数'Py :: Object _png_module :: write_png(const Py :: Tuple&)'中:     src / _png.cpp:147:错误:未在此范围内声明'npy_PyFile_Dup'     src / _png.cpp:243:错误:未在此范围内声明'npy_PyFile_DupClose'     src / _png.cpp:264:错误:未在此范围内声明'npy_PyFile_DupClose'     src / _png.cpp:在成员函数'PyObject * _png_module :: _ read_png(const Py :: Object&,bool,int)'中:     src / _png.cpp:329:错误:未在此范围内声明'npy_PyFile_Dup'     src / _png.cpp:577:错误:未在此范围内声明'npy_PyFile_DupClose'     错误:命令' gcc'退出状态1失败

In other post suggested to install python-dev  and it is already installed on my server. 

Thank you in advance
Krishna

0 个答案:

没有答案