简体   繁体   English

安装Numpy时出错

[英]Error while Installing Numpy

When install pandas, it requires numpy to be installed and on installing it gives following error: 安装熊猫时,它需要安装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

How can i resolve this error? 我该如何解决该错误?

I installed Visual C++ but when i installed numpy using easy_install numpy i got following error: 我安装了Visual C ++,但是当我使用easy_install numpy安装numpy时,出现以下错误:

I installed Visual C++ and then tried easy_install numpy but i got following error: 我安装了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 : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol rint referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol trunc referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol exp2 referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol log2 _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol builtin_expect referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.c _configtest.c(1) : error C2143: syntax error : missing ')' before '(' _configtest.c(1) : error C2143: syntax error : missing ')' before '(' _configtest.c(1) : error C _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: function returns function _configtest.c(1) : error C2143: syntax error : missing ')' before 'string' _configtest.c(1) : error C2091: function returns function _configtest.c(1) : error C2143: syntax error : missing '{' before 'string' _configtest.c(1) : error C2059: syntax error : '' _configtest.c(1) : error C2059: syntax error : ')' _configtest.c(1) : error C2059: syntax error : ')' _configtest.c(1) : error C2059: syntax error : ')' _configtest.c(3) : warning C4163: 'attribute_optimize_unroll_loops' : not available as an intrinsic function _configtest.c(6) : error C2065: 'attribute_optimize_unroll_loops' : undeclared identifier _configtest.c _configtest.c(1) : error C2143: syntax error : missing ')' before '(' _configtest.c(1) : error C2143: syntax error : missing ')' before '(' _configtest.c(1) : error C2091: function returns function _configtest.c(1) : error C2143: syntax error : missing ')' before 'string' _configtest.c(1) : error C2091: function returns function _configtest.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) : error C2143: syntax error : missing '{' before 'string' _configtest.c(1) : error C2059: syntax error : '' _configtest.c(1) : error C2059: syntax error : ')' _configtest.c(1) : error C2059: syntax error : ')' _configtest.c(1) : error C2059: syntax error : ')' _configtest.c(3) : warning C4163: 'attribute_optimize_opt_3' : not available as an intrinsic function _configtest.c(6) : error C2065: 'attribute_optimize_opt_3' : undeclared identifier _configtest.c _configtest.c(1) : error C2143: syntax error : missing ')' before '(' _configtest.c(1) : error C2143: syntax error : missing ')' before '(' _configtest.c(1) : error C2091: function returns function _configtest.c(1) : error C2143: syntax error : missing ')' before 'constant' _configtest.c(1) : error C2091: function returns function _configtest.c(1) : error C2143: syntax error : missing '{' before 'constant' _configtest.c(1) : error C2059: syntax error : '' _configtest.c(1) : error C2059: syntax error : ')' _configtest.c(1) : error (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: syntax error : ')' _configtest.c(1) : error C2059: syntax error : ')' _configtest.c(3) : warning C4163: 'attribute_nonnull' : not available as an intrinsic function _configtest.c(6) : error C2065: 'attribute_nonnull' : undeclared identifier _configtest.c _configtest.c(1) : error C2061: syntax error : identifier 'a' _configtest.c(1) : error C2059: syntax error : ';' 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) : warning C4163: '__thread' : not available as an intrinsic function _configtest.c(6) : error C2065: '__thread' : undeclared identifier _configtest.obj : error LNK2019: unresolved external symbol nextafterf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol copysignf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol log2f referenced in function main _configtest.obj : error LNK2019: unresolved external symbol exp2f referenced in function main _configtest.obj : error LNK2019: unresolved external symbol ldexpf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol frexpf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol hypotf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol atanhf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol acoshf referenced in f _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 : error LNK2019: unresolved external symbol asinhf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol expm1f referenced in function main _configtest.obj : error LNK2019: unresolved external symbol log1pf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol truncf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol rintf referenced in function main _configtest.obj : error LNK2019: unresolved external symbol fabsf referenced in function main _configtest.exe : fatal error LNK1120: 15 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol fabsf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol rintf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved 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:未解析 external symbol truncf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol log1pf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol expm1f referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol asinhf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol acoshf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol atanhf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol hypotf referenced in function main _config 函数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 : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol frexpf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol ldexpf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol exp2f referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol log2f referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol copysignf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol nextafterf referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved external 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 : error LNK2019: unresolved external symbol nextafterl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol copysignl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol log2l referenced in function main _configtest.obj : error LNK2019: unresolved external symbol exp2l referenced in function main _configtest.obj : error LNK2019: unresolved external symbol ldexpl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol frexpl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol modfl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol fmodl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol powl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol atan2l referenced in function main _configtest.obj : error LNK2019: unresolved ext 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 ernal symbol hypotl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol atanhl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol acoshl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol asinhl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol atanl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol acosl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol asinl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol expm1l referenced in function main _configtest.obj : error LNK2019: unresolved external symbol expl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol log1pl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol logl referenced in function main _configte 在函数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 : error LNK2019: unresolved external symbol log10l referenced in function main _configtest.obj : error LNK2019: unresolved external symbol sqrtl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol truncl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol rintl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol ceill referenced in function main _configtest.obj : error LNK2019: unresolved external symbol floorl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol fabsl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol tanhl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol coshl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol sinhl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol tanl r 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 eferenced in function main _configtest.obj : error LNK2019: unresolved external symbol cosl referenced in function main _configtest.obj : error LNK2019: unresolved external symbol sinl referenced in function main _configtest.exe : fatal error LNK1120: 34 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol sinl referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol cosl referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol tanl referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol sinhl referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol coshl referenced in function main _configte 在函数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 : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol tanhl referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol fabsl referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol floorl referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol ceill referenced in function main _configtest.exe : fatal error LNK1120: 1 unresolved externals _configtest.obj : error LNK2019: unresolved external symbol rintl referenced in function main _configtest.c _configtest.c(8) : error C2065: 'HAVE_DECL_SIGNBIT' : undeclared identifier _configtest.c _configtest.c(8) : error C2065: 'HAVE_DECL_ISFINITE' : undeclared identifier _configtest.c _configtest.c(8) : error C2065: ' 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' : undeclared identifier _configtest.c _configtest.c(8) : error C2065: 'isfinite' : undeclared identifier _configtest.c _configtest.c(1) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory BUILD_ARCHITECTURE: 'AMD64', os.name='nt', sys.platform='win32' _configtest.c _configtest.c(3) : error C2054: expected '(' to follow 'inline' _configtest.c(4) : error C2085: 'static_func' : not in formal parameter list _configtest.c(4) : error C2143: syntax error : missing ';' before '{' _configtest.c(7) : error C2054: expected '(' to follow 'inline' _configtest.c(8) : error C2085: 'nostatic_func' : not in formal parameter list _configtest.c(8) : error C2143: syntax error : missing ';' before '{' _configtest.c _configtest.c(3) : error C2054: expected '(' to follow '__inline ' _configtest.c(4) : error C2085: 'static_func' : not in formal parameter list _configtest.c(4) : error C2143: syntax error : missing ';' before '{' _configtest.c(7) : error C2054: expecte 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 '(' to follow ' inline ' _configtest.c(8) : error C2085: 'nostatic_func' : not in formal parameter list _configtest.c(8) : error C2143: syntax error : missing ';' before '{' _configtest.c _configtest.c(7) : error C2065: 'Py_UNICODE_WIDE' : undeclared identifier File: build\\src.win-amd64-2.7\\numpy\\core\\include/numpy\\config.h #define SIZEOF_PY_INTPTR_T 8 #define SIZEOF_OFF_T 4 #define SIZEOF_PY_LONG_LONG 8 #define MATHLIB #define HAVE_SIN 1 #define HAVE_COS 1 #define HAVE_TAN 1 #define HAVE_SINH 1 #define HAVE_COSH 1 #define HAVE_TANH 1 #define HAVE_FABS 1 #define HAVE_FLOOR 1 #define HAVE_CEIL 1 #define HAVE_SQRT 1 #define HAVE_LOG10 1 #define HAVE_LOG 1 #define HAVE_EXP 1 #define HAVE_ASIN 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 #define HAVE_POW 1 #define HAVE_XMMINTRIN_H 1 #define HAVE_EMMINTRIN_H 1 #define HAVE__MM_LOAD_PS 1 #define HAVE__MM_LOAD_PD 1 #define HAVE___DECLSPEC_THR 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 #define HAVE_SINF 1 #define HAVE_COSF 1 #define HAVE_TANF 1 #define HAVE_SINHF 1 #define HAVE_COSHF 1 #define HAVE_TANHF 1 #define HAVE_FLOORF 1 #define HAVE_CEILF 1 #define HAVE_SQRTF 1 #define HAVE_LOG10F 1 #define HAVE_LOGF 1 #define HAVE_EXPF 1 #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 __inline #endif 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

EDIT 3: BEST WAY see if you have pip, if not, it is easy to install open up cmd.exe type 编辑3:最好的方式看看是否有pip,如果没有,则很容易安装打开cmd.exe类型

python -m pip install numpy

Try using this installer for numpy from the repository http://www.lfd.uci.edu/~gohlke/pythonlibs/ 尝试从存储库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 http://www.lfd.uci.edu/~gohlke/pythonlibs/girnt9fk/numpy-MKL-1.9.1.win32-py2.7.exe

and see if you return errors there 看看你是否在那儿返回错误

EDIT: There are two major errors here 编辑:这里有两个主要错误

  1. is a problem with the setup.py (or at least easy-install) 是setup.py的问题(​​或至少易于安装)

    either the script is the problem (can't find files in the directory) 脚本是问题所在(在目录中找不到文件)

    or the directory downloaded was flawed 或下载的目录有缺陷

    Atlas, Blas, Blassrc, and Lapack sources cannot be found because the 找不到Atlas,Blas,Blassrc和Lapack来源,因为

script never found numpy\\distutils\\site.cfg that would point to these. 脚本从未找到指向这些的numpy \\ distutils \\ site.cfg。 To fix 修理

this problem Rajat would have to edit the script setup.py and fix the 这个问题Rajat必须编辑脚本setup.py并修复

directory location for site.cfg site.cfg的目录位置

  1. Rajat may not have the right version of Microsoft Visual C++(2008), he can check Rajat可能没有正确版本的Microsoft Visual C ++(2008),他可以检查

it using a variety of methods, but it wouldn't hurt to download 使用多种方法进行下载,但下载无损

separately, Rajat can get it from here http://www.microsoft.com/en-us/download/details.aspx?id=29 Rajat可以分别从此处http://www.microsoft.com/en-us/download/details.aspx?id=29获取它

ALTERNATIVELY, it is likely the exe will work out of box, as someone who 另外,该exe可能会开箱即用,

sometimes uses Windows to write python, .exes and .msis are the first thing 有时使用Windows编写python,.exes和.msis是第一件事

I look for, because they have always given the least headaches for me if 我在寻找,因为他们总是给我带来最少的麻烦

they exist 他们存在

EDIT 2: 编辑2:

I downloaded numpy 1.9.1.zip, in the instructions it says you have to build YOUR OWN site.cfg file. 我下载了numpy 1.9.1.zip,它在说明中指出您必须构建自己的site.cfg文件。 there is more information in a file called site.cfg.example (you can open it with a text editor like Notepad ++, Gedit, &c). 在名为site.cfg.example的文件中有更多信息(您可以使用文本编辑器(如Notepad ++,Gedit和&c)打开它)。 From what I understand the the only contents need to be 据我了解,唯一的内容是

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

for this to work, you need to download the mingw package, you can get that from here: 为此,您需要下载mingw软件包,可以从这里获取:

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

and you need Atlas, the instructions to install that are here 您需要Atlas,此处提供了安装说明

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

make sure these folders go to C:\\ or change the directory in site.cfg 确保这些文件夹转到C:\\或更改site.cfg中的目录

the site.cfg you write in a text editor needs to be in PATHTONUMPY-1.9.1/numpy/distutils/ 您在文本编辑器中编写的site.cfg必须位于PATHTONUMPY-1.9.1 / numpy / distutils /

I HIGHLY recommend trying the .exe I've linked. 我强烈建议尝试链接的.exe。 but try these and update if there are more errors 但请尝试这些并进行更新(如果还有更多错误)

In these cases I recommend using a Python distribution from other vendors who take care of providing complex packages built for Windows. 在这些情况下,我建议使用其他供应商的Python发行版,这些供应商负责提供为Windows构建的复杂程序包。 Seriously, have a look at for instance https://www.activestate.com/activepython/downloads . 认真地看一下例如https://www.activestate.com/activepython/downloads It's free to use without limitations (as long as you do not sell it), it comes with a good installer and it comes with a package manager, where you can just type pypm install numpy and pypm install pandas . 它是免费使用的,没有限制(只要您不出售它),它带有一个不错的安装程序,并且带有一个程序包管理器,您可以在其中键入pypm install numpypypm install pandas

The main advantage of this method is that it is super fast to re-create your Python environment of choice on any given Windows machine. 这种方法的主要优点是,在任何给定的Windows计算机上重新创建您选择的Python环境都非常快。

There is no disadvantage with such a Python installation, you can still use pip and all other package installation methods you are used to. 这样的Python安装没有任何缺点,您仍然可以使用pip和您习惯的所有其他软件包安装方法。

Installing pandas via the Anaconda package is the easiest way I've found: http://continuum.io/downloads This installer includes all the dependencies in one streamlined, contained install. 通过Anaconda软件包安装熊猫是我发现的最简单的方法: http : //continuum.io/downloads此安装程序将所有依赖项包含在一个简化的包含安装中。 I highly recommend it. 我强烈推荐它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM