简体   繁体   English

无法在Windows 7上安装SciPy

[英]Trouble installing SciPy on windows 7

I am newbie in Python. 我是Python的新手。 Before I tried to install this library, I installed NumPy. 在尝试安装此库之前,我已经安装了NumPy。 I don't know why this error occurred error when installing SciPy. 我不知道为什么在安装SciPy时出现此错误。 Here is the image of the error: 这是错误的图片:

在此处输入图片说明

Please give me a step by step description of the installation process of SciPy. 请逐步介绍SciPy的安装过程。

The easiest way to install SciPy on Windows is using Anaconda . 在Windows上安装SciPy的最简单方法是使用Anaconda This gives you a lot of popular scientific Python packages. 这为您提供了许多流行的科学Python软件包。 All work together. 一起工作。 It takes about 2GB on your hard drive because it installs many packages, many of which you won't use, but saves you a lot of time. 硬盘驱动器上大约需要2GB的空间,因为它安装了许多软件包,其中许多是您不会使用的,但可以节省大量时间。

Alternatively, you can use Miniconda . 或者,您可以使用Miniconda This uses less space. 这样会占用更少的空间。 It gives you a basic Python install with conda . 它为您提供了一个使用conda的基本Python安装。 Then you can install packages individually with: 然后,您可以使用以下方法分别安装软件包:

conda install scipy

Lets start from the beginning. 让我们从头开始。 Try installing SciPy with pip via the Windows command line. 尝试通过Windows命令行通过pip安装SciPy。 The command is: 该命令是:

pip install scipy

You will need to make sure you have Python set in your system path. 您需要确保在系统路径中设置了Python。 Take a look at this tutorial if you are confused about that: http://www.computerhope.com/issues/ch000549.htm 如果您对此感到困惑,请看一下本教程: http : //www.computerhope.com/issues/ch000549.htm

If the installation with pip doesn't work (which it never has for me with SciPy) then you can install it via whl file which you can grab from the University of California Irvine. 如果无法使用pip进行安装(对于SciPy而言,这对我而言是永远无法完成的),则可以通过whl文件进行安装,可以从加利福尼亚大学欧文分校获取。 Grab the file for your system architecture here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ 在此处获取适用于您的系统架构的文件: http : //www.lfd.uci.edu/~gohlke/pythonlibs/

Then, in the command prompt, go to the directory where you downloaded the appropriate whl file and enter the following command: 然后,在命令提示符下,转到下载了相应的whl文件的目录,然后输入以下命令:

pip install name_of_whl_file.whl

You should be good to go after that. 那之后你应该很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM