簡體   English   中英

安裝Numpy時出錯

[英]Error while Installing Numpy

安裝熊貓時,它需要安裝numpy,並且在安裝時會出現以下錯誤:

Processing numpy-1.9.1.zip
Writing c:\cygwin64\tmp\easy_install-4x5clr\numpy-1.9.1\setup.cfg
Running numpy-1.9.1\setup.py -q bdist_egg --dist-dir c:\cygwin64\tmp\easy_install-4x5clr\numpy-1.9.1\egg-dist-tmp-rz7g3x
non-existing path in 'numpy\\distutils': 'site.cfg'
non-existing path in 'numpy\\f2py': 'docs'
non-existing path in 'numpy\\f2py': 'f2py.1'
non-existing path in 'numpy\\lib': 'benchmarks'
Running from numpy source directory.
c:\cygwin64\tmp\easy_install-4x5clr\numpy-1.9.1\numpy\distutils\system_info.py:1526: UserWarning:
    Atlas 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__)
c:\cygwin64\tmp\easy_install-4x5clr\numpy-1.9.1\numpy\distutils\system_info.py:1535: UserWarning:
    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__)
c:\cygwin64\tmp\easy_install-4x5clr\numpy-1.9.1\numpy\distutils\system_info.py:1538: UserWarning:
    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__)
c:\cygwin64\tmp\easy_install-4x5clr\numpy-1.9.1\numpy\distutils\system_info.py:1432: UserWarning:
    Atlas 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__)
c:\cygwin64\tmp\easy_install-4x5clr\numpy-1.9.1\numpy\distutils\system_info.py:1443: 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__)
c:\cygwin64\tmp\easy_install-4x5clr\numpy-1.9.1\numpy\distutils\system_info.py:1446: UserWarning:
    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__)
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
error: Setup script exited with error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27

我該如何解決該錯誤?

我安裝了Visual C ++,但是當我使用easy_install numpy安裝numpy時,出現以下錯誤:

我安裝了Visual C ++,然后嘗試了easy_install numpy,但出現以下錯誤:

Writing c:\cygwin64\tmp\easy_install-jh4ada\numpy-1.9.1\setup.cfg
Running numpy-1.9.1\setup.py -q bdist_egg --dist-dir c:\cygwin64\tmp\easy_instal                                                                                                                l-jh4ada\numpy-1.9.1\egg-dist-tmp-shcroi
non-existing path in 'numpy\\distutils': 'site.cfg'
non-existing path in 'numpy\\f2py': 'docs'
non-existing path in 'numpy\\f2py': 'f2py.1'
non-existing path in 'numpy\\lib': 'benchmarks'
Could not locate executable g77
Could not locate executable f77
Could not locate executable ifort
Could not locate executable ifl
Could not locate executable f90
Running from numpy source directory.
c:\cygwin64\tmp\easy_install-jh4ada\numpy-1.9.1\numpy\distutils\system_info.py:1                                                                                                                526: 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__)
c:\cygwin64\tmp\easy_install-jh4ada\numpy-1.9.1\numpy\distutils\system_info.py:1                                                                                                                535: 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__)
c:\cygwin64\tmp\easy_install-jh4ada\numpy-1.9.1\numpy\distutils\system_info.py:1                                                                                                                538: 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__)
c:\cygwin64\tmp\easy_install-jh4ada\numpy-1.9.1\numpy\distutils\system_info.py:1                                                                                                                432: 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__)
c:\cygwin64\tmp\easy_install-jh4ada\numpy-1.9.1\numpy\distutils\system_info.py:1                                                                                                                443: 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__)
c:\cygwin64\tmp\easy_install-jh4ada\numpy-1.9.1\numpy\distutils\system_info.py:1                                                                                                                446: 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__)
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option:                                                                                                                 'define_macros'
  warnings.warn(msg)
Could not locate executable efl
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable g95
Could not locate executable efort
Could not locate executable efc
don't know how to compile Fortran code on platform 'nt'
_configtest.c
_configtest.c(1) : fatal error C1083: Cannot open include file: 'endian.h': No s                                                                                                                uch file or directory
_configtest.c
_configtest.c(5) : error C2118: negative subscript
_configtest.c
_configtest.c(5) : error C2118: negative subscript
_configtest.c
_configtest.c(5) : error C2118: negative subscript

_configtest.exe:致命錯誤LNK1120:1個未解決的外部_configtest.obj:錯誤LNK2019:未在功能主體中引用的外部符號rint _configtest.exe:致命錯誤LNK1120:1無法解決的外部_configtest.obj:錯誤LNK2019:尚未解決的外部符號trunc函數main _configtest.exe:致命錯誤LNK1120:1未解決的外部_configtest.obj:錯誤LNK2019:未解決的外部符號exp2在函數main _configtest.exe中:致命錯誤LNK1120:1無法解決的外部_configtest.obj:錯誤LNK2019:無法解決的外部符號log2 _configtest.exe:致命錯誤LNK1120:1未解決的外部_configtest.obj:錯誤LNK2019:未解決的外部符號build_in在函數main _configtest.exe中引用:致命錯誤LNK1120:1未解決的外部_configtest.c _configtest.c(1):錯誤C2143:語法錯誤:'('_configtest.c(1)之前缺少')'錯誤C2143:語法錯誤:'('_configtest.c(1)之前缺少')'錯誤C 2091:函數返回函數_configtest.c(1):錯誤C2143:語法錯誤:在'string'之前丟失')'_configtest.c(1):錯誤C2091:函數返回函數_configtest.c(1):錯誤C2143:語法錯誤:'字符串'之前缺少'{'_configtest.c(1):錯誤C2059:語法錯誤:''_configtest.c(1):錯誤C2059:語法錯誤:')'_configtest.c(1):錯誤C2059 :語法錯誤:')'_configtest.c(1):錯誤C2059:語法錯誤:')'_configtest.c(3):警告C4163:'attribute_optimize_unroll_loops':不可作為內在函數_configtest.c(6):錯誤C2065:'attribute_optimize_unroll_loops':未聲明的標識符_configtest.c _configtest.c(1):錯誤C2143:語法錯誤:缺少')'在'('_configtest.c(1):錯誤C2143:語法錯誤:缺少')' '('_configtest.c(1)之前:錯誤C2091:函數返回函數_configtest.c(1):錯誤C2143:語法錯誤:缺少')''字符串'_configtest.c(1)之前:錯誤C2091:函數返回函數_configtest.c (1):錯誤C2143:語法錯誤:'字符串'之前缺少'{'_configtest.c(1):錯誤C2059:語法錯誤:''_configtest.c(1):錯誤C2059:語法錯誤:')'_configtest .c(1):錯誤C2059:語法錯誤:')'_configtest.c(1):錯誤C2059:語法錯誤:')'_configtest.c(3):警告C4163:'attribute_optimize_opt_3':不能作為內部變量使用函數_configtest.c(6):錯誤C2065:'attribute_optimize_opt_3':未聲明的標識符_configtest.c _configtest.c(1):錯誤C2143:語法錯誤:缺少')'在'('_configtest.c(1)之前:錯誤C2143 :語法錯誤:在((_configtest.c(1):之前缺少')':錯誤C2091:函數返回函數_configtest.c(1):錯誤C2143:語法錯誤:在'constant'_configtest.c(之前缺少')' 1):錯誤C2091:函數返回函數_configtest.c(1):錯誤C2143:語法錯誤:在'constant'_configtest.c(1)之前缺少'{':錯誤C2059:語法錯誤:''_configtest.c(1 ):錯誤C2059:語法錯誤:')'_configtest.c(1):錯誤 C2059:語法錯誤:')'_configtest.c(1):錯誤C2059:語法錯誤:')'_configtest.c(3):警告C4163:'attribute_nonnull':不可作為內在函數_configtest.c(6) :錯誤C2065:'attribute_nonnull':未聲明的標識符_configtest.c _configtest.c(1):錯誤C2061:語法錯誤:標識符'a'_configtest.c(1):錯誤C2059:語法錯誤:';' _configtest.c(3):警告C4163:'__thread':不可作為內在函數使用_configtest.c(6):錯誤C2065:'__thread':未聲明的標識符_configtest.obj:錯誤LNK2019:函數中引用的未解析外部符號nextafterf main _configtest.obj:錯誤LNK2019:函數main中引用的未解析的外部符號copysignf main _configtest.obj:錯誤LNK2019:未解析的外部符號log2f在main main _configtest.obj中引用的錯誤:LNK2019:未解析的外部符號exp2f在函數main _configtest.obj中引用的:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號ldexpf:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號frexpf:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號hypotf:錯誤LNK2019:無法解析的外部函數main _configtest.obj中引用的符號atanhf:錯誤LNK2019:f中引用的未解析的外部符號acoshf unction main _configtest.obj:錯誤LNK2019:在函數main _configtest.obj中引用的未解析外部符號asinhf:錯誤LNK2019:在函數main _configtest.obj中引用的未解析外部符號expm1f:錯誤LNK2019:在函數main _configtest.obj中引用的未解析外部符號log1pf :錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號truncf:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號rintf:錯誤LNK2019:在函數main _configtest.exe中引用的未解析的外部符號fabsf:致命錯誤LNK1120: 15個未解析的外部_configtest.obj:錯誤LNK2019:在功能主_configtest.exe中引用的未解析外部符號fabsf:致命錯誤LNK1120:1個未解析的外部符號_configtest.obj:錯誤LNK2019:在功能主_configtest.exe中引用的未解析外部符號rintf:致命錯誤LNK1120:1個未解析的外部_configtest.obj:錯誤LNK2019:未解析 函數main _configtest.exe中引用的外部符號truncf:致命錯誤LNK1120:1未解決的外部變量_configtest.obj:錯誤LNK2019:函數main _configtest.exe中引用的未解析外部符號log1pf:致命錯誤LNK1120:1無法解決的外部變量_configtest.obj:錯誤LNK2019 :在函數main _configtest.exe中引用的未解決的外部符號expm1f:致命錯誤LNK1120:1未解決的外部符號_configtest.obj:錯誤LNK2019:在函數main _configtest.exe中引用的未解析外部符號asinhf:致命錯誤LNK1120:1尚未解決的外部符號_configtest.obj:錯誤LNK2019:在函數main _configtest.exe中引用的未解析的外部符號acoshf:致命錯誤LNK1120:1未解析的外部符號_configtest.obj:錯誤LNK2019:在函數main _configtest.exe中引用的未解析外部符號atanhf:致命錯誤LNK1120:1未解析的外部_configtest。 obj:錯誤LNK2019:函數main _config中引用的未解析的外部符號hypotf test.exe:致命錯誤LNK1120:1個未解決的外部_configtest.obj:錯誤LNK2019:未解析的外部符號在函數main中引用_configtest.exe:致命錯誤LNK1120:1無法解析的外部_configtest.obj:錯誤LNK2019:未解決的外部符號ldexpf在引用函數main _configtest.exe:致命錯誤LNK1120:1個無法解析的外部_configtest.obj:錯誤LNK2019:無法解析的外部符號exp2f在函數main _configtest.exe中引用:致命錯誤LNK1120:1無法解析的外部_configtest.obj:錯誤LNK2019:無法解析的外部符號log2f在函數main _configtest.exe中引用的:致命錯誤LNK1120:1個未解決的外部_configtest.obj:錯誤LNK2019:在函數main _configtest.exe中引用的未解析的外部符號copysignf:致命錯誤LNK1120:1個無法解析的外部_configtest.obj:錯誤LNK2019:無法解析的外部函數main _configtest.exe中引用的符號nextafterf:致命錯誤LNK1120:1未解析的外部 s _configtest.obj:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號nextafterl:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號copysignl:錯誤LNK2019:在函數main_configtest.obj中引用的未解析的外部符號log2l:錯誤LNK2019:函數main _configtest.obj中引用的未解析的外部符號exp2l:錯誤LNK2019:函數main _configtest.obj中引用的未解析的外部符號ldexpl:錯誤LNK2019:函數main _configtest.obj中引用的未解析的外部符號frexpl:錯誤LNK2019:未解析的外部在函數main _configtest.obj中引用的符號modfl:錯誤LNK2019:在函數main _configtest.obj中引用的未解析外部符號fmodl:錯誤LNK2019:在函數main _configtest.obj中引用的未解析外部符號powl:錯誤LNK2019:函數中引用的未解析外部符號atan2l main _configtest.obj:錯誤LNK2019:未解析的ext 在函數main _configtest.obj中引用的內部符號hypotl:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號atanhl:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號acoshl:錯誤LNK2019:在instance中引用的未解析的外部符號asinhl函數main _configtest.obj:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號atanl:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號acosl:錯誤LNK2019:在函數main _configtest.obj中引用的未解析的外部符號asinl :錯誤LNK2019:函數main _configtest.obj中引用的未解析的外部符號expm1l:錯誤LNK2019:函數main _configtest.obj中引用的未解析的外部符號expl:錯誤LNK2019:函數main _configtest.obj中引用的未解析的外部符號log1pl:錯誤LNK2019:錯誤函數main _configte中引用的外部符號logl st.obj:錯誤LNK2019:函數main _configtest.obj中引用的未解析外部符號log10l:錯誤LNK2019:函數main _configtest.obj中引用的未解析外部符號sqrtl:錯誤LNK2019:函數main _configtest.obj中引用的未解析外部符號truncl LNK2019:函數main _configtest.obj中引用的未解析的外部符號rintl:錯誤LNK2019:函數main _configtest.obj中引用的未解析的外部符號ceill:錯誤LNK2019:函數main _configtest.obj中引用的未解析的外部符號floorl:錯誤LNK2019:未解析的外部符號在函數main _configtest.obj中引用的fabsl:錯誤LNK2019:在函數main _configtest.obj中引用的未解析外部符號tanhl:錯誤LNK2019:在函數main中引用的未解析外部符號coshl _configtest.obj:錯誤LNK2019:在函數main中引用的未解析外部符號sinhl _configtest.obj:錯誤LNK2019:無法解析的外部符號tanl r 在函數main _configtest.obj中引用:錯誤LNK2019:在函數main _configtest.obj中引用了未解析的外部符號cosl:錯誤LNK2019:在函數main _configtest.exe中引用了未解析的外部符號sinl:致命錯誤LNK1120:34無法解析的外部_configtest.obj:錯誤LNK2019:函數main _configtest.exe中引用的未解析的外部符號sinl:致命錯誤LNK1120:1無法解析的外部符號_configtest.obj:錯誤LNK2019:函數main _configtest.exe引用的未解析外部符號cosl:致命錯誤LNK1120:1無法解析的外部_configtest.obj :錯誤LNK2019:在函數main _configtest.exe中引用了未解析的外部符號tanl:致命錯誤LNK1120:1無法解析的外部符號_configtest.obj:錯誤LNK2019:在函數main _configtest.exe中引用了未解析的外部符號sinhl:致命錯誤LNK1120:1未解析的外部_configtest .obj:錯誤LNK2019:函數main _configte中引用了無法解析的外部符號coshl st.exe:致命錯誤LNK1120:1個未解決的外部_configtest.obj:錯誤LNK2019:未解析的外部符號tanhl在函數main _configtest.exe中:致命錯誤LNK1120:1無法解決的外部_configtest.obj:錯誤LNK2019:未解決的外部符號fabsl在引用函數main _configtest.exe:致命錯誤LNK1120:1未解決的外部_configtest.obj:錯誤LNK2019:未解析的外部符號floorl在函數main _configtest.exe中引用的致命錯誤LNK1120:1無法解決的外部_configtest.obj:錯誤LNK2019:無法解決的外部符號ceill在函數main _configtest.exe中引用:致命錯誤LNK1120:1未解析的外部變量_configtest.obj:錯誤LNK2019:在函數main _configtest.c _configtest.c(8)中引用的未解析外部符號rintl:錯誤C2065:'HAVE_DECL_SIGNBIT':未聲明的標識符_configtest .c _configtest.c(8):錯誤C2065:'HAVE_DECL_ISFINITE':未聲明的標識符_configtest.c _configtest.c(8):錯誤C2065:' signbit':未聲明的標識符_configtest.c _configtest.c(8):錯誤C2065:'isfinite':未聲明的標識符_configtest.c _configtest.c(1):致命錯誤C1083:無法打開包含文件:'complex.h':否這樣的文件或目錄BUILD_ARCHITECTURE:'AMD64',os.name ='nt',sys.platform ='win32'_configtest.c _configtest.c(3):錯誤C2054:預期'('跟隨'inline'_configtest.c (4):錯誤C2085:'static_func':不在形式參數列表_configtest.c中(4):錯誤C2143:語法錯誤:缺少';'在'{'_configtest.c(7)之前:錯誤C2054:預期'( '跟隨'inline'_configtest.c(8):錯誤C2085:'nostatic_func':不在正式參數列表中_configtest.c(8):錯誤C2143:語法錯誤:在'{'_configtest.c _configtest之前缺少';' .c(3):錯誤C2054:預期'('跟隨'__inline'_configtest.c (4):錯誤C2085:'static_func':不在正式參數列表中_configtest.c(4):錯誤C2143:語法錯誤:在'{'_configtest.c(7)之前缺少';':錯誤C2054:預期 d'('跟隨' 內聯 '_configtest.c(8):錯誤C2085:'nostatic_func':不在正式參數列表中_configtest.c(8):錯誤C2143:語法錯誤:缺少';'在'{'_configtest之前.c _configtest.c(7):錯誤C2065:'Py_UNICODE_WIDE':未聲明的標識符文件:build \\ src.win-amd64-2.7 \\ numpy \\ core \\ include / numpy \\ config.h #define SIZEOF_PY_INTPTR_T 8 #define SIZEOF_OFF_T 4#定義SIZEOF_PY_LONG_LONG 8#定義MATHLIB#定義HAVE_SIN 1#定義HAVE_COS 1#定義HAVE_TAN 1#定義HAVE_SINH 1#定義HAVE_COSH 1#定義HAVE_TANH 1#定義HAVE_FABS 1#定義HAVE_FLOOR 1#定義HAVE#1 #define HAVE_LOG 1 #define HAVE_EXP 1 #define HAVE_ACOS 1 #define HAVE_ATAN 1 #define HAVE_FMOD 1 #define HAVE_MODF 1 #define HAVE_FREXP 1 #define HAVE_LDEXP 1 #define HAVE_ATAN2 1#defineH#MM HAVE_EMMINTRIN_H 1#定義HAVE__MM_LOAD_PS 1#定義HAVE__MM_LOAD_PD 1#定義HAVE___DECLSPEC_THR EAD_ 1#定義HAVE_SINF 1#定義HAVE_COSF 1#定義HAVE_TANF 1#定義HAVE_SINHF 1#定義HAVE_COSHF 1#定義HAVE_TANHF 1#定義HAVE_FLOORF 1#定義HAVE_CEILF 1#定義HAVE_SQRTF 1#定義HAVE_LOG10 1#定義HAVE_LOG10的#define HAVE_ASINF 1的#define HAVE_ACOSF 1的#define HAVE_ATANF 1的#define HAVE_ATAN2F 1的#define HAVE_POWF 1的#define HAVE_FMODF 1的#define HAVE_MODFF 1的#define __NPY_PRIVATE_NO_SIGNAL的#define DISTUTILS_USE_SDK的#define FORCE_NO_LONG_DOUBLE_FORMATTING的#define ENABLE_SEPARATE_COMPILATION 1的#define HAVE_LDOUBLE_IEEE_DOUBLE_LE 1的#ifndef __cplusplus的#define內聯__inline #endif

#ifndef _NPY_NPY_CONFIG_H_
#error config.h should never be included directly, include npy_config.h instead
#endif

EOF
_configtest.c
_configtest.c(1) : fatal error C1083: Cannot open include file: 'inttypes.h': No such file or directory
_configtest.c
_configtest.c(6) : fatal error C1189: #error :  gcc >= 4 required
File: build\src.win-amd64-2.7\numpy\core\include/numpy\_numpyconfig.h
#define NPY_SIZEOF_SHORT SIZEOF_SHORT
#define NPY_SIZEOF_INT SIZEOF_INT
#define NPY_SIZEOF_LONG SIZEOF_LONG
#define NPY_SIZEOF_FLOAT 4
#define NPY_SIZEOF_COMPLEX_FLOAT 8
#define NPY_SIZEOF_DOUBLE 8
#define NPY_SIZEOF_COMPLEX_DOUBLE 16
#define NPY_SIZEOF_LONGDOUBLE 8
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
#define NPY_SIZEOF_PY_INTPTR_T 8
#define NPY_SIZEOF_OFF_T 4
#define NPY_SIZEOF_PY_LONG_LONG 8
#define NPY_SIZEOF_LONGLONG 8
#define NPY_NO_SIGNAL 1
#define NPY_NO_SMP 0
#define NPY_HAVE_DECL_ISNAN
#define NPY_HAVE_DECL_ISINF
#define NPY_ENABLE_SEPARATE_COMPILATION 1
#define NPY_VISIBILITY_HIDDEN
#define NPY_ABI_VERSION 0x01000009
#define NPY_API_VERSION 0x00000009

#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif

EOF
### Warning:  Using unoptimized lapack ###
### Warning:  Using unoptimized lapack ###
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution

編輯3:最好的方式看看是否有pip,如果沒有,則很容易安裝打開cmd.exe類型

python -m pip install numpy

嘗試從存儲庫http://www.lfd.uci.edu/~gohlke/pythonlibs/中將此安裝程序用於numpy

http://www.lfd.uci.edu/~gohlke/pythonlibs/girnt9fk/numpy-MKL-1.9.1.win32-py2.7.exe

看看你是否在那兒返回錯誤

編輯:這里有兩個主要錯誤

  1. 是setup.py的問題(​​或至少易於安裝)

    腳本是問題所在(在目錄中找不到文件)

    或下載的目錄有缺陷

    找不到Atlas,Blas,Blassrc和Lapack來源,因為

腳本從未找到指向這些的numpy \\ distutils \\ site.cfg。 修理

這個問題Rajat必須編輯腳本setup.py並修復

site.cfg的目錄位置

  1. Rajat可能沒有正確版本的Microsoft Visual C ++(2008),他可以檢查

使用多種方法進行下載,但下載無損

Rajat可以分別從此處http://www.microsoft.com/en-us/download/details.aspx?id=29獲取它

另外,該exe可能會開箱即用,

有時使用Windows編寫python,.exes和.msis是第一件事

我在尋找,因為他們總是給我帶來最少的麻煩

他們存在

編輯2:

我下載了numpy 1.9.1.zip,它在說明中指出您必須構建自己的site.cfg文件。 在名為site.cfg.example的文件中有更多信息(您可以使用文本編輯器(如Notepad ++,Gedit和&c)打開它)。 據我了解,唯一的內容是

    library_dirs=c:\mingw\lib,c:\atlas\lib

為此,您需要下載mingw軟件包,可以從這里獲取:

http://sourceforge.net/projects/mingw/files/

您需要Atlas,此處提供了安裝說明

http://math-atlas.sourceforge.net/atlas_install/node50.html

確保這些文件夾轉到C:\\或更改site.cfg中的目錄

您在文本編輯器中編寫的site.cfg必須位於PATHTONUMPY-1.9.1 / numpy / distutils /

我強烈建議嘗試鏈接的.exe。 但請嘗試這些並進行更新(如果還有更多錯誤)

在這些情況下,我建議使用其他供應商的Python發行版,這些供應商負責提供為Windows構建的復雜程序包。 認真地看一下例如https://www.activestate.com/activepython/downloads 它是免費使用的,沒有限制(只要您不出售它),它帶有一個不錯的安裝程序,並且帶有一個程序包管理器,您可以在其中鍵入pypm install numpypypm install pandas

這種方法的主要優點是,在任何給定的Windows計算機上重新創建您選擇的Python環境都非常快。

這樣的Python安裝沒有任何缺點,您仍然可以使用pip和您習慣的所有其他軟件包安裝方法。

通過Anaconda軟件包安裝熊貓是我發現的最簡單的方法: http : //continuum.io/downloads此安裝程序將所有依賴項包含在一個簡化的包含安裝中。 我強烈推薦它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM