无法在Windows上安装SciPy [英] Trouble installing SciPy on windows

查看:91
本文介绍了无法在Windows上安装SciPy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了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:

布拉斯(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.

迈克

没关系,我发现了一个非正式的安装程序.

Nevermind, I found an unofficial installer exe.

推荐答案

要在Windows上安装SciPy,您必须安装一个fortran编译器. SciPy项目建议使用MinGW.请参阅构建和安装SciPy .要安装MinGW,请遵循以下说明:如何安装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

旁注,使用思想分发(初始安装的一部分)或活动状态分发( 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆