Reputation: 649
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.
Thank you so much(in advance).
Upvotes: 8
Views: 15835
Reputation: 1
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
py -2.n -m pip install C:\DIRECTORY\scipy\scipy-0.0.0-cp2n-cp2nm-win_amd32.whl
Test both modules on your python IDLE as following: import numpy import scipy
IFDAAS
Upvotes: 0
Reputation: 19938
I did the following to get Scripy installed on my Windows virtualenv:
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.
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.
Upvotes: 0
Reputation: 4388
I struggled with the same problem for a long time, and I eventually found an easy solution here`
Upvotes: 5
Reputation: 1750
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.
Upvotes: 3
Reputation: 1154
Would WinPython an option for you? Unless necessary, I'd see if that covers my needs
Upvotes: 0