本文介绍了缺少依赖项在Windows 7上为Python 3.4.1 32位安装NumPy 1.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 7 AMD 64位计算机上,我似乎无法使用32位Python 3.4.1获得NumPy 1.9.0.

I cannot seem to get NumPy 1.9.0 with Python 3.4.1 32-bit on a Windows 7 AMD 64-bit machine.

我下载了该软件包,将其解压缩并运行:

I download the package, unzip it, and run:

python setup.py install

这是我在命令外壳中收到的消息.

Here are the messages I get in the command shell.

我认为我的问题是我没有具有MLK二进制文件的Intel计算机,因为我具有AMD处理器.我已经尝试了许多Google搜索结果;不高兴.

I think my problem is that I don't have an Intel machine with MLK binaries available, because I have an AMD processor. I've tried a number of Google search results; no joy.

关于如何使它成功的任何建议?

Any advice on how to make this successful?

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>

推荐答案

如果您想尝试在Windows计算机上构建NumPy,则对您有好处.但是,如果要在Windows计算机上使用 NumPy,请转到Christoph Gohlke的适用于Windows的Python扩展程序包.他拥有适用于32位和64位Intel/AMD处理器的MKL链接版本的NumPy,以及大量其他相关模块,主要用于科学和数字计算.您可以在此处找到numpy.下载适用于您的Python版本的32位.exe,运行安装程序,一切就绪.

If you want to try and build NumPy on a Windows machine, good for you. However, if you want to use NumPy on a Windows machine, head over to Christoph Gohlke's Python Extension Packages for Windows repository. He has MKL-linked versions of NumPy for 32- and 64-bit Intel/AMD processors, as well as a ton of other related modules, mainly for scientific and numeric computing. You can find numpy here. Download the 32-bit .exe for your version of Python, run the installer, and you're all set.

这篇关于缺少依赖项在Windows 7上为Python 3.4.1 32位安装NumPy 1.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 07:52
查看更多