2014-10-10 90 views
3

我似乎无法在Windows 7 AMD 64位机器上获得NumPy 1.9.0与Python 3.4.1 32位。缺少依赖性在Windows 7上安装NumPy 1.9 3.4.1 32位在Windows 7上

我下载包,解压缩,然后运行:

python setup.py install 

下面是我在命令shell中获得的消息。

我认为我的问题是我没有可用的MLK二进制文件的英特尔机器,因为我有一个AMD处理器。我尝试了一些Google搜索结果;没有快乐。

有关如何使此成功的建议?

F:\Tools\numpy-1.9.0>python setup.py install 
Running from numpy source directory. 
F:\Tools\python-3.4.1\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'test_suite' 
    warnings.warn(msg) 
non-existing path in 'numpy\\distutils': 'site.cfg' 
non-existing path in 'numpy\\f2py': 'docs' 
non-existing path in 'numpy\\f2py': 'f2py.1' 
F2PY Version 2 
blas_opt_info: 
blas_mkl_info: 
    libraries mkl,vml,guide not found in ['F:\\Tools\\python-3.4.1\\lib', 'C:\\', 'F:\\Tools\\python-3.4.1\\libs'] 
    NOT AVAILABLE 

openblas_info: 
    libraries openblas not found in ['F:\\Tools\\python-3.4.1\\lib', 'C:\\', 'F:\\Tools\\python-3.4.1\\libs'] 
    NOT AVAILABLE 

atlas_blas_threads_info: 
Setting PTATLAS=ATLAS 
    libraries ptf77blas,ptcblas,atlas not found in ['F:\\Tools\\python-3.4.1\\lib', 'C:\\', 'F:\\Tools\\python-3.4.1\\libs 
'] 
    NOT AVAILABLE 

atlas_blas_info: 
    libraries f77blas,cblas,atlas not found in ['F:\\Tools\\python-3.4.1\\lib', 'C:\\', 'F:\\Tools\\python-3.4.1\\libs'] 
    NOT AVAILABLE 

F:\Tools\numpy-1.9.0\numpy\distutils\system_info.py:1526: 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 ['F:\\Tools\\python-3.4.1\\lib', 'C:\\', 'F:\\Tools\\python-3.4.1\\libs'] 
    NOT AVAILABLE 

F:\Tools\numpy-1.9.0\numpy\distutils\system_info.py:1535: 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 

F:\Tools\numpy-1.9.0\numpy\distutils\system_info.py:1538: 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 

non-existing path in 'numpy\\lib': 'benchmarks' 
lapack_opt_info: 
openblas_lapack_info: 
    libraries openblas not found in ['F:\\Tools\\python-3.4.1\\lib', 'C:\\', 'F:\\Tools\\python-3.4.1\\libs'] 
    NOT AVAILABLE 

lapack_mkl_info: 
mkl_info: 
    libraries mkl,vml,guide not found in ['F:\\Tools\\python-3.4.1\\lib', 'C:\\', 'F:\\Tools\\python-3.4.1\\libs'] 
    NOT AVAILABLE 

    NOT AVAILABLE 

atlas_threads_info: 
Setting PTATLAS=ATLAS 
    libraries ptf77blas,ptcblas,atlas not found in F:\Tools\python-3.4.1\lib 
    libraries lapack_atlas not found in F:\Tools\python-3.4.1\lib 
    libraries ptf77blas,ptcblas,atlas not found in C:\ 
    libraries lapack_atlas not found in C:\ 
    libraries ptf77blas,ptcblas,atlas not found in F:\Tools\python-3.4.1\libs 
    libraries lapack_atlas not found in F:\Tools\python-3.4.1\libs 
<class 'numpy.distutils.system_info.atlas_threads_info'> 
    NOT AVAILABLE 

atlas_info: 
    libraries f77blas,cblas,atlas not found in F:\Tools\python-3.4.1\lib 
    libraries lapack_atlas not found in F:\Tools\python-3.4.1\lib 
    libraries f77blas,cblas,atlas not found in C:\ 
    libraries lapack_atlas not found in C:\ 
    libraries f77blas,cblas,atlas not found in F:\Tools\python-3.4.1\libs 
    libraries lapack_atlas not found in F:\Tools\python-3.4.1\libs 
<class 'numpy.distutils.system_info.atlas_info'> 
    NOT AVAILABLE 

F:\Tools\numpy-1.9.0\numpy\distutils\system_info.py:1432: 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 ['F:\\Tools\\python-3.4.1\\lib', 'C:\\', 'F:\\Tools\\python-3.4.1\\libs'] 
    NOT AVAILABLE 

F:\Tools\numpy-1.9.0\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__) 
lapack_src_info: 
    NOT AVAILABLE 

F:\Tools\numpy-1.9.0\numpy\distutils\system_info.py:1446: 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 

F:\Tools\python-3.4.1\lib\distutils\dist.py:260: 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 
No module named 'numpy.distutils.msvccompiler' in numpy.distutils; trying from distutils 
error: Unable to find vcvarsall.bat 

F:\Tools\numpy-1.9.0> 
+0

您是否知道[此网站](http://www.lfd.uci.edu/~gohlke/pythonlibs/)?这比在Windows上手动编译模块容易得多... – MattDMo 2014-10-10 00:50:05

+1

首先,谁告诉你MKL不能在AMD处理器上工作?英特尔有一个关于他们如何专门优化其竞争对手芯片的“局限性”的更完美的事情,而不是MathCore。 – abarnert 2014-10-10 00:52:05

+1

二,你不需要MKL;它只是让事情变得更快。这就是为什么没有关于MKL的错误。错误是关于'msvccompiler'和'vcvarsall.bat'。你有C编译器吗?你没有提到你需要什么指示? – abarnert 2014-10-10 00:53:54

回答

7

如果您想尝试在Windows机器上构建NumPy,那对您很有帮助。但是,如果您想在Windows计算机上使用使用 NumPy,请转至Christoph Gohlke的Python Extension Packages for Windows存储库。他有32位和64位Intel/AMD处理器的NumPy的MKL连接版本,以及大量其他相关模块,主要用于科学和数字计算。你可以找到numpy here。为您的Python版本下载32位.exe,运行安装程序,然后完成设置。

+0

谢谢,这是非常有用的,并将为我节省未来的模块安装时间。 – Geoff 2014-12-03 12:29:55