日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python使用install_用 python setup.py install 安装 matplotlib 报错

發布時間:2024/9/19 python 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python使用install_用 python setup.py install 安装 matplotlib 报错 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

錯誤信息如下:

running install

running bdist_egg

running egg_info

writing requirements to lib/matplotlib.egg-info/requires.txt

writing lib/matplotlib.egg-info/PKG-INFO

writing namespace_packages to lib/matplotlib.egg-info/namespace_packages.txt

writing top-level names to lib/matplotlib.egg-info/top_level.txt

writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt

reading 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/egg

running install_lib

running build_py

copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-x86_64-2.7/matplotlib/mpl-data

running build_ext

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/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.o

src/_png.cpp:10:20: error: png.h: No such file or directory

In 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 given

src/_png.cpp:264:44: error: macro "npy_PyFile_DupClose" requires 3 arguments, but only 2 given

src/_png.cpp:577:44: error: macro "npy_PyFile_DupClose" requires 3 arguments, but only 2 given

In 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 void

src/_png.cpp:68: error: ?.ng_structp?.was not declared in this scope

src/_png.cpp:68: error: ?.ng_bytep?.was not declared in this scope

src/_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 used

error: command 'gcc' failed with exit status 1

系統信息:

CentOS 6.3 64bit

Python 2.6.x

matplotlib 1.3.1

與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的python使用install_用 python setup.py install 安装 matplotlib 报错的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。