Question

I have installed Numpy successfully. But on the site , there is lot of things that I have to do such as building Numpy, Scipy, downloading ATLAS, LAPACK etc. I am really confused and even I have checked some of the other queries also. Still not able to understand.

Can anyone please explain me what exactly should I do? I have cygwin installed on my pc.

  1. How to buid Numpy? whats the use of building numpy?
  2. How to install Scipy?
  3. Whats ATLAS, LAPACK etc etc ?

Thank you so much(in advance).

Was it helpful?

Solution

I struggled with the same problem for a long time, and I eventually found an easy solution here`

OTHER TIPS

You really should try Enthought Python Distribution. Just a single msi installation file, click a few Next and then you are done. They include lots of scientific packages in it, including numpy, scipy, matplotlib, etc., and also ipython environment.

Would WinPython an option for you? Unless necessary, I'd see if that covers my needs

I did the following to get Scripy installed on my Windows virtualenv:

  1. I downloaded the file here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy and then selected the file: numpy-1.11.1+mkl-cp27-cp27m-win32.whl

. The file is applicable to me as I'm running Python 2.7 and I have a win32 machine. You can check this information on your side by running python in your cmd prompt. Mine says:

Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32

The reason why we download numpy first is because scipy relates on it. Under scipy on the same website: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy, it says:

Requires numpy+mkl.
Install numpy+mkl before installing scipy.
  1. Download the applicable scipy file for you, mine was this one: scipy-0.18.0-cp27-cp27m-win32.whl

Now, you can dump them into the root of your virtualenv folder. Send the following commands in your virtualenv:

pip install numpy-1.11.1+mkl-cp27-cp27m-win32.whl
pip install scipy-0.18.0-cp27-cp27m-win32.whl

Scipy will then install successfully.

the easiest way is in the following steps: Fixing scipy for python [ 2.n < python < 3.n ]

Download the necessary files from: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Download the version of numpy+mkl (needed to run scipy) and then download scipy for your python type (2.n python written as 2n) or (3.n python written as 3n), n is a variable. Note you must know whether you have a 32bit or 64bit processor.

Create a directory somewhere on your computer, example [C:\DIRECTORY] to install the files numpy+mkd.whl and scipy.whl

Once both file are downloaded, find the location of the file on your computer and move it to the directory you created.

Example: first file installation is needed for scipy is in---> C:\DIRECTORY\numpy\numpy-0.0.0+mkl-cp2n-cp2nm-win_amd32.whl

Example: second file installation is in---> C:\DIRECTORY\scipy\scipy-0.0.0-cp2n-cp2nm-win_amd32.whl

Go to your command prompt and proceed the following example for a python version 2.n:

py -2.n -m pip install C:\DIRECTORY\numpy\numpy-0.0.0+mkl-cp2n-cp2nm-win_amd32.whl

should install

py -2.n -m pip install C:\DIRECTORY\scipy\scipy-0.0.0-cp2n-cp2nm-win_amd32.whl

should install

Test both modules on your python IDLE as following: import numpy import scipy

the modules are working if no errors are returned.

IFDAAS

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top