如何为python安装scipy?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12735524/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 11:45:05  来源:igfitidea点击:

how to install scipy for python?

pythonnumpyscipy

提问by l--''''''---------''''''''''''

I have Python 2.7, and I have distutilsinstalled.

我有 Python 2.7,并且安装了distutils

I downloaded the latest version of Scipy for win 32.

我下载了最新版本的Scipy for win 32

For the life of me, I do not understand how to install it.

对于我的生活,我不明白如何安装它。

From the directions on the site, it states:

网站上的说明来看,它指出:

If you already have Python installed, the easiest way to install Numpy and Scipy is to download and install the binary distribution from Download.

如果您已经安装了 Python,安装 Numpy 和 Scipy 的最简单方法是从下载下载并安装二进制分发

I have followed the above directions and downloaded this.

我已经按照上述说明下载了这个

enter image description here

在此处输入图片说明

I cannot figure what to do now!

我现在想不通该怎么办!

How do I finish getting scipy installed?

我如何完成安装 scipy?

回答by Collin

It looks like you've downloaded the source distribution, which you would normally install by doing:

看起来您已经下载了源代码发行版,您通常会通过以下方式安装:

python setup.py install

However, without the proper C compiler environment and other libraries, it will probably fail. I'm guessing you really wanted to download the Windows binaries .

但是,如果没有合适的 C 编译器环境和其他库,它可能会失败。我猜你真的想下载Windows 二进制文件

You have to drill a little further down in the sourceforge site to find it.

您必须在 sourceforge 站点中深入挖掘才能找到它。

回答by Anuj Gupta

You'll be well off installing setuptools. Makes installing almost anything python-related a breeze!

你会很好地安装setuptools。使安装几乎所有与 python 相关的东西变得轻而易举!

e.g.

例如

easy_install scipy

There's another one called pip.

还有一种叫做pip。

easy_install pip

pip install scipy

回答by jerry

just open windows command prompt and go to the directory you have installed Python. e.g c:\python34>

只需打开 Windows 命令提示符并转到您安装 Python 的目录。例如 c:\python34>

Once there, just type python -m pip install scipyand press enter

在那里,只需键入python -m pip install scipy并按 Enter