$cd numpy
$ sudo python setup.py build
$ sudo python setup.py install
Running from numpy source directory.
Cythonizing sources
numpy/random/mtrand/mtrand.pyx has not changed
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘test_suite‘
warnings.warn(msg)
non-existing path in ‘numpy/distutils‘: ‘site.cfg‘
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
openblas_info:
libraries openblas not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64/atlas‘, ‘/usr/lib64/sse2‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64/atlas‘, ‘/usr/lib64/sse2‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64/atlas‘, ‘/usr/lib64/sse2‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64/atlas‘, ‘/usr/lib64/sse2‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
/home/tim/Desktop/cv2/numpy/numpy/distutils/system_info.py:1651: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
libraries blas not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
/home/tim/Desktop/cv2/numpy/numpy/distutils/system_info.py:1660: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
warnings.warn(BlasNotFoundError.__doc__)
blas_src_info:
NOT AVAILABLE
/home/tim/Desktop/cv2/numpy/numpy/distutils/system_info.py:1663: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
warnings.warn(BlasSrcNotFoundError.__doc__)
NOT AVAILABLE
lapack_opt_info:
openblas_lapack_info:
libraries openblas not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas,tatlas not found in /usr/local/lib64
libraries lapack_atlas not found in /usr/local/lib64
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/lib64/atlas
libraries lapack_atlas not found in /usr/lib64/atlas
libraries tatlas,tatlas not found in /usr/lib64/sse2
libraries lapack_atlas not found in /usr/lib64/sse2
libraries tatlas,tatlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib64
libraries tatlas,tatlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
<class ‘numpy.distutils.system_info.atlas_3_10_threads_info‘>
NOT AVAILABLE
atlas_3_10_info:
libraries satlas,satlas not found in /usr/local/lib64
libraries lapack_atlas not found in /usr/local/lib64
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/lib64/atlas
libraries lapack_atlas not found in /usr/lib64/atlas
libraries satlas,satlas not found in /usr/lib64/sse2
libraries lapack_atlas not found in /usr/lib64/sse2
libraries satlas,satlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib64
libraries satlas,satlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
<class ‘numpy.distutils.system_info.atlas_3_10_info‘>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib64
libraries lapack_atlas not found in /usr/local/lib64
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib64/atlas
libraries lapack_atlas not found in /usr/lib64/atlas
libraries ptf77blas,ptcblas,atlas not found in /usr/lib64/sse2
libraries lapack_atlas not found in /usr/lib64/sse2
libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib64
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
<class ‘numpy.distutils.system_info.atlas_threads_info‘>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in /usr/local/lib64
libraries lapack_atlas not found in /usr/local/lib64
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/lib64/atlas
libraries lapack_atlas not found in /usr/lib64/atlas
libraries f77blas,cblas,atlas not found in /usr/lib64/sse2
libraries lapack_atlas not found in /usr/lib64/sse2
libraries f77blas,cblas,atlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib64
libraries f77blas,cblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
<class ‘numpy.distutils.system_info.atlas_info‘>
NOT AVAILABLE
/home/tim/Desktop/cv2/numpy/numpy/distutils/system_info.py:1552: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
libraries lapack not found in [‘/usr/local/lib64‘, ‘/usr/local/lib‘, ‘/usr/lib64‘, ‘/usr/lib‘]
NOT AVAILABLE
/home/tim/Desktop/cv2/numpy/numpy/distutils/system_info.py:1563: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
lapack_src_info:
NOT AVAILABLE
/home/tim/Desktop/cv2/numpy/numpy/distutils/system_info.py:1566: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
NOT AVAILABLE
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘define_macros‘
warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC
compile options: ‘-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -c‘
gcc: _configtest.c
gcc -pthread _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC
compile options: ‘-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -c‘
gcc: _configtest.c
_configtest.c:1: warning: conflicting types for built-in function ‘exp’
gcc -pthread _configtest.o -o _configtest
_configtest.o: In function `main‘:
/home/tim/Desktop/cv2/numpy/_configtest.c:6: undefined reference to `exp‘
collect2: ld returned 1 exit status
_configtest.o: In function `main‘:
/home/tim/Desktop/cv2/numpy/_configtest.c:6: undefined reference to `exp‘
collect2: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
C compiler: gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC
compile options: ‘-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -c‘
gcc: _configtest.c
_configtest.c:1: warning: conflicting types for built-in function ‘exp’
gcc -pthread _configtest.o -lm -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building library "npysort" sources
adding ‘build/src.linux-x86_64-2.7/numpy/core/src/private‘ to include_dirs.
None - nothing done with h_files = [‘build/src.linux-x86_64-2.7/numpy/core/src/private/npy_partition.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/src/private/npy_binsearch.h‘]
building extension "numpy.core._dummy" sources
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h‘ to sources.
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h‘ to sources.
executing numpy/core/code_generators/generate_numpy_api.py
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h‘ to sources.
numpy.core - nothing done with h_files = [‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h‘]
building extension "numpy.core.multiarray" sources
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h‘ to sources.
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h‘ to sources.
executing numpy/core/code_generators/generate_numpy_api.py
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h‘ to sources.
adding ‘build/src.linux-x86_64-2.7/numpy/core/src/private‘ to include_dirs.
numpy.core - nothing done with h_files = [‘build/src.linux-x86_64-2.7/numpy/core/src/private/templ_common.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h‘]
building extension "numpy.core.umath" sources
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h‘ to sources.
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h‘ to sources.
executing numpy/core/code_generators/generate_ufunc_api.py
adding ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h‘ to sources.
adding ‘build/src.linux-x86_64-2.7/numpy/core/src/umath‘ to include_dirs.
numpy.core - nothing done with h_files = [‘build/src.linux-x86_64-2.7/numpy/core/src/umath/funcs.inc‘, ‘build/src.linux-x86_64-2.7/numpy/core/src/umath/simd.inc‘, ‘build/src.linux-x86_64-2.7/numpy/core/src/umath/loops.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h‘, ‘build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h‘]
building extension "numpy.core.umath_tests" sources
building extension "numpy.core.test_rational" sources
building extension "numpy.core.struct_ufunc_test" sources
building extension "numpy.core.multiarray_tests" sources
building extension "numpy.core.operand_flag_tests" sources
building extension "numpy.fft.fftpack_lite" sources
building extension "numpy.linalg.lapack_lite" sources
### Warning: Using unoptimized lapack ###
adding ‘numpy/linalg/lapack_litemodule.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/python_xerbla.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/zlapack_lite.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/dlapack_lite.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/blas_lite.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/dlamch.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/f2c_lite.c‘ to sources.
building extension "numpy.linalg._umath_linalg" sources
### Warning: Using unoptimized lapack ###
adding ‘numpy/linalg/umath_linalg.c.src‘ to sources.
adding ‘numpy/linalg/lapack_lite/python_xerbla.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/zlapack_lite.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/dlapack_lite.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/blas_lite.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/dlamch.c‘ to sources.
adding ‘numpy/linalg/lapack_lite/f2c_lite.c‘ to sources.
building extension "numpy.random.mtrand" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
copying numpy/version.py -> build/lib.linux-x86_64-2.7/numpy
copying build/src.linux-x86_64-2.7/numpy/__config__.py -> build/lib.linux-x86_64-2.7/numpy
copying build/src.linux-x86_64-2.7/numpy/distutils/__config__.py -> build/lib.linux-x86_64-2.7/numpy/distutils
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
running build_scripts
adding ‘build/scripts.linux-x86_64-2.7/f2py‘ to scripts
running install_lib
copying build/lib.linux-x86_64-2.7/numpy/distutils/__config__.py -> /usr/lib64/python2.7/site-packages/numpy/distutils
copying build/lib.linux-x86_64-2.7/numpy/version.py -> /usr/lib64/python2.7/site-packages/numpy
copying build/lib.linux-x86_64-2.7/numpy/__config__.py -> /usr/lib64/python2.7/site-packages/numpy
byte-compiling /usr/lib64/python2.7/site-packages/numpy/distutils/__config__.py to __config__.pyc
byte-compiling /usr/lib64/python2.7/site-packages/numpy/version.py to version.pyc
byte-compiling /usr/lib64/python2.7/site-packages/numpy/__config__.py to __config__.pyc
running install_scripts
changing mode of /usr/bin/f2py to 775
running install_data
copying build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h -> /usr/lib64/python2.7/site-packages/numpy/core/include/numpy
copying build/src.linux-x86_64-2.7/numpy/core/include/numpy/ufunc_api.txt -> /usr/lib64/python2.7/site-packages/numpy/core/include/numpy
copying build/src.linux-x86_64-2.7/numpy/core/lib/npy-pkg-config/npymath.ini -> /usr/lib64/python2.7/site-packages/numpy/core/lib/npy-pkg-config
copying build/src.linux-x86_64-2.7/numpy/core/lib/npy-pkg-config/mlib.ini -> /usr/lib64/python2.7/site-packages/numpy/core/lib/npy-pkg-config
running install_egg_info
Removing /usr/lib64/python2.7/site-packages/numpy-1.11.0.dev0_9cd868a-py2.7.egg-info
Writing /usr/lib64/python2.7/site-packages/numpy-1.11.0.dev0_9cd868a-py2.7.egg-info
running install_clib
详细: