centos6安装scipy报错

木容锋 2017-04-18 04:34:57
现在是用pip install scipy各种报错,然后各种百度,还是报错,选择源码用python setup.py install 报了一样的错。以下是报错:
# python setup.py install

Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:

- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)


lapack_opt_info:
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['/usr/lib64']
NOT AVAILABLE

NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/lib64/atlas
libraries lapack not found in ['/usr/lib64/atlas']
numpy.distutils.system_info.atlas_threads_info
Setting PTATLAS=ATLAS
/usr/lib64/python2.7/site-packages/numpy/distutils/system_info.py:1050: UserWarning:
*********************************************************************
Could not find lapack library within the ATLAS installation.
*********************************************************************

warnings.warn(message)
Setting PTATLAS=ATLAS
FOUND:
libraries = ['tatlas']
library_dirs = ['/usr/lib64/atlas']
language = c
define_macros = [('ATLAS_WITHOUT_LAPACK', None)]
include_dirs = ['/usr/include']

lapack_info:
FOUND:
libraries = ['lapack']
library_dirs = ['/usr/lib64']
language = f77

FOUND:
libraries = ['tatlas', 'lapack']
library_dirs = ['/usr/lib64/atlas', '/usr/lib64']
language = f77
define_macros = [('ATLAS_WITHOUT_LAPACK', None)]
include_dirs = ['/usr/include']

Running from scipy source directory.
non-existing path in 'scipy/integrate': 'quadpack.h'
Splitting linalg.interpolative Fortran source files
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in ['/usr/lib64']
NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
Setting PTATLAS=ATLAS
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
compiling '_configtest.c':

/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}

C compiler: gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC

compile options: '-c'
gcc: _configtest.c
gcc -pthread _configtest.o -L/usr/lib64/atlas -ltatlas -o _configtest
ATLAS version 3.10.1 built by mockbuild on Fri Nov 20 05:32:04 UTC 2015:
UNAME : Linux worker1.bsys.centos.org 2.6.32-220.17.1.el6.x86_64 #1 SMP Wed May 16 00:01:37 BST 2012 x86_64 x86_64 x86_64 GNU/Linux
INSTFLG : -1 0 -a 1 -l 1
ARCHDEFS : -DATL_OS_Linux -DATL_ARCH_Corei1 -DATL_CPUMHZ=2394 -DATL_SSE3 -DATL_SSE2 -DATL_SSE1 -DATL_USE64BITS -DATL_GAS_x8664
F2CDEFS : -DAdd_ -DF77_INTEGER=int -DStringSunStyle
CACHEEDGE: 4194304
F77 : /usr/bin/gfortran, version GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
F77FLAGS : -O -msse3 -g -fstack-protector-strong -Wa,--noexecstack -fPIC -m64
SMC : /usr/bin/x86_64-redhat-linux-gcc, version x86_64-redhat-linux-gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
SMCFLAGS : -fomit-frame-pointer -mfpmath=sse -O2 -fno-schedule-insns2 -msse3 -g -fstack-protector-strong -Wa,--noexecstack -fPIC -m64
SKC : /usr/bin/x86_64-redhat-linux-gcc, version x86_64-redhat-linux-gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
SKCFLAGS : -fomit-frame-pointer -mfpmath=sse -O2 -fno-schedule-insns2 -msse3 -g -fstack-protector-strong -Wa,--noexecstack -fPIC -m64
success!
removing: _configtest.c _configtest.o _configtest
Setting PTATLAS=ATLAS
FOUND:
libraries = ['tatlas']
library_dirs = ['/usr/lib64/atlas']
language = c
define_macros = [('ATLAS_INFO', '"\\"3.10.1\\""')]
include_dirs = ['/usr/include']

FOUND:
libraries = ['tatlas']
library_dirs = ['/usr/lib64/atlas']
language = c
define_macros = [('ATLAS_INFO', '"\\"3.10.1\\""')]
include_dirs = ['/usr/include']

non-existing path in 'scipy/sparse': 'sparsetools/sparsetools_impl.h'
non-existing path in 'scipy/sparse': 'sparsetools/bsr_impl.h'
non-existing path in 'scipy/sparse': 'sparsetools/csc_impl.h'
non-existing path in 'scipy/sparse': 'sparsetools/csr_impl.h'
non-existing path in 'scipy/sparse': 'sparsetools/other_impl.h'
running install
running bdist_egg
running egg_info
running build_src
build_src
building py_modules sources
building library "dfftpack" sources
building library "fftpack" sources
building library "mach" sources
building library "quadpack" sources
building library "odepack" sources
building library "dop" sources
building library "fitpack" sources
building library "fwrappers" sources
building library "odrpack" sources
building library "minpack" sources
building library "rootfind" sources
building library "superlu_src" sources
building library "arpack_scipy" sources
building library "sc_c_misc" sources
building library "sc_cephes" sources
building library "sc_mach" sources
building library "sc_amos" sources
building library "sc_cdf" sources
building library "sc_specfun" sources
building library "statlib" sources
building extension "scipy.cluster._vq" sources
building extension "scipy.cluster._hierarchy" sources
building extension "scipy.fftpack._fftpack" sources
f2py options: []
f2py: scipy/fftpack/fftpack.pyf
Traceback (most recent call last):
File "setup.py", line 416, in <module>
setup_package()
File "setup.py", line 412, in setup_package
setup(**metadata)
File "/usr/lib64/python2.7/site-packages/numpy/distutils/core.py", line 186, in setup
return old_setup(**new_attr)
File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib64/python2.7/site-packages/numpy/distutils/command/install.py", line 57, in run
r = self.setuptools_run()
File "/usr/lib64/python2.7/site-packages/numpy/distutils/command/install.py", line 51, in setuptools_run
self.do_egg_install()
File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 93, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 177, in run
self.run_command("egg_info")
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib64/python2.7/site-packages/numpy/distutils/command/egg_info.py", line 8, in run
self.run_command("build_src")
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib64/python2.7/site-packages/numpy/distutils/command/build_src.py", line 152, in run
self.build_sources()
File "/usr/lib64/python2.7/site-packages/numpy/distutils/command/build_src.py", line 169, in build_sources
self.build_extension_sources(ext)
File "/usr/lib64/python2.7/site-packages/numpy/distutils/command/build_src.py", line 334, in build_extension_sources
sources = self.f2py_sources(sources, ext)
File "/usr/lib64/python2.7/site-packages/numpy/distutils/command/build_src.py", line 571, in f2py_sources
import numpy.f2py
ImportError: No module named f2py

以下是numpy/distutils/site.cfg的内容:
# vim /usr/lib64/python2.7/site-packages/numpy/distutils/site.cfg
[DEFAULT]
library_dirs = /usr/lib64
include_dirs = /usr/incl:qude
[atlas]
library_dirs = /usr/lib64/atlas
atlas_libs = tatlas


以下是 /usr/lib64/atlas的内容:
drwxr-xr-x. 4 502 games 4096 Apr 18 15:58 BLAS
drwxr-xr-x. 3 502 games 4096 Apr 18 15:58 CMAKE
-rw-r--r--. 1 502 games 10750 Aug 26 2012 CMakeLists.txt
-rw-r--r--. 1 502 games 529 Aug 12 2009 CTestConfig.cmake
-rw-r--r--. 1 502 games 1604 Sep 24 2011 CTestCustom.cmake.in
drwxr-xr-x. 2 502 games 4096 Apr 18 15:58 DOCS
drwxr-xr-x. 2 502 games 4096 Apr 18 15:58 INSTALL
-rw-r--r--. 1 502 games 7531 Apr 25 2012 lapack_build.cmake
drwxr-xr-x. 7 502 games 4096 Apr 18 15:58 lapacke
-rw-r--r--. 1 502 games 228 Dec 16 2010 lapack.pc.in
-rwxr-xr-x. 1 502 games 11958 Nov 17 2013 lapack_testing.py
-rw-r--r--. 1 root root 9929686 Nov 20 2015 libatlas.a
-rw-r--r--. 1 root root 805536 Apr 18 16:00 librefblas.a
lrwxrwxrwx. 1 root root 17 Apr 18 14:51 libsatlas.so -> libsatlas.so.3.10
lrwxrwxrwx. 1 root root 17 Apr 18 11:13 libsatlas.so.3 -> libsatlas.so.3.10
-rwxr-xr-x. 1 root root 10852104 Nov 20 2015 libsatlas.so.3.10
lrwxrwxrwx. 1 root root 17 Apr 18 14:51 libtatlas.so -> libtatlas.so.3.10
lrwxrwxrwx. 1 root root 17 Apr 18 11:13 libtatlas.so.3 -> libtatlas.so.3.10
-rwxr-xr-x. 1 root root 10959464 Nov 20 2015 libtatlas.so.3.10
-rw-r--r--. 1 502 games 2266 Apr 19 2012 LICENSE
-rw-r--r--. 1 502 games 3864 Apr 14 2012 Makefile
-rw-r--r--. 1 502 games 2584 Apr 18 16:00 make.inc
-rw-r--r--. 1 502 games 6386 Nov 17 2013 README
drwxr-xr-x. 3 502 games 45056 Apr 18 11:46 SRC
drwxr-xr-x. 10 502 games 4096 Apr 18 15:45 TESTING
...全文
514 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
木容锋 2017-04-25
  • 打赏
  • 举报
回复
重装了虚拟机,重新装了一遍解决了
shiter 2017-04-19
  • 打赏
  • 举报
回复
实在不行搞个ancotana一装。。。

3,424

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧