在 Windows 上安装 SciPy 时遇到问题 [英] Trouble installing SciPy on windows
问题描述
我安装了 Python 2.7 和 NumPy.我已经为 SciPy 下载了预构建的二进制文件,但安装脚本失败并出现以下错误:
I have Python 2.7 and NumPy installed. I have downloaded pre-built binaries for SciPy, but the install script fails with this error:
Blas (http://www.netlib.org/blas/)
未找到库.搜索库的目录可以在numpy/distutils/site.cfg
文件(部分 [blas]
)或通过设置BLAS 环境变量.
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.
我真的不太了解这个,无法愚弄它.我认为这是一个简单的安装过程,但似乎不是.我用谷歌搜索了 BLAS 环境变量,但找不到任何合适的东西.任何帮助表示赞赏.
I really don't know enough about this to fool with it. I assumed it was a straightforward install process, but doesn't appear to be. I googled for the BLAS environment variable, but couldn't find anything that seemed appropriate. Any help is appreciated.
迈克
没关系,我找到了一个非官方的安装程序 exe.
Nevermind, I found an unofficial installer exe.
推荐答案
要在 Windows 上安装 SciPy,您必须安装 Fortran 编译器.SciPy 项目推荐 MinGW.请参阅构建和安装 SciPy.要安装 MinGW,请遵循以下说明:HOWTO 安装 MinGW (GCC) 编译器套件.然后在运行 pip 或 easy_install 来安装 SciPy 之前,请确保您已将 MinGW 添加到您的路径中.请参阅 MinGW 安装说明 - 环境变量
To install SciPy on Windows you have to have a fortran compiler installed. The SciPy project recommends MinGW. See Building and installing SciPy. To install MinGW follow these instructions: HOWTO Install the MinGW (GCC) Compiler Suite. Then before you run pip or easy_install to install SciPy make sure that you have MinGW added to your path. See MinGW Installation Notes - Environmental Variables
附注,使用 Enthought Distribution (初始安装的一部分)或 Active State Distribution(仅通过 pypm 32 位),因为他们已经为 SciPy 提供了预编译的二进制包.或者,您可以使用 SciPy 预编译二进制Windows 软件包安装程序.
A side note, It would be easier to use either the Enthought Distribution (part of the initial install) or the Active State Distribution (through pypm 32-bit only) as they already have precomiled binary packages for SciPy. Or, you could use the SciPy precompiled binary package installer for Windows.
这篇关于在 Windows 上安装 SciPy 时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!