Matplotlib 1.4.2/1.4.3不从sou安装

2024-05-28 23:05:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在我的ubuntu14.04系统上安装了Matplotlib 1.3.1,我认为是时候升级到1.4.2了。出于兼容性的原因,我从来没有得到最新版本(一些使用Matplotlib的包可能会停止工作)。然后把它的内容下载到一个未压缩的python文件夹中设置.py建造”。但是,我得到了以下错误(仅最后几行):

c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/ft2font.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/extern/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/extern/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/extern/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/extern/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -lfreetype -lstdc++ -lm -o build/lib.linux-x86_64-2.7/matplotlib/ft2font.so
/usr/bin/ld: /usr/local/lib64/libstdc++.a(si_class_type_info.o): relocation R_X86_64_32S against `_ZTVN10__cxxabiv120__si_class_type_infoE' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib64/libstdc++.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'c++' failed with exit status 1

然后,我在Matplotlib 1.4.3中尝试了同样的方法(为什么不呢?)结果也一样。在

这是怎么回事?在

非常感谢你的帮助。在

福斯托


Tags: buildmatplotliblinuxusrlocalcxxexternerror

热门问题