Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install Numpy for Python 2.7 on Windows?

I am trying to install numpy for python 2.7, I've downloaded the zip, unzipped it and was expecting a Windows download file (.exe), but there isn't one. Which of these files do I use to install it? I tried running the setup.py file but don't seem to be getting anywhere.

Thanks!!!

like image 300
LaHumbee Avatar asked Jan 23 '15 11:01

LaHumbee


2 Answers

There is .exe file in SourceForge. This is this link below: http://sourceforge.net/projects/numpy/files/NumPy/1.9.1/numpy-1.9.1-win32-superpack-python2.7.exe/download

like image 166
Sarpens Avatar answered Oct 09 '22 02:10

Sarpens


Python on Windows, including rather complex science/math/statistics package builds? It should just work? Seriously, use a third-party distribution! There are plenty and they only exist as of the hassle you were observing.

While the other two answers are "okay", it would recommend another approach. Especially for the common Windows user the following approach is easy to maintain and easy to reproduce.

Let me quote from the SciPy website:

For most users, especially on Windows and Mac, the easiest way to install the packages of the SciPy stack is to download one of these Python distributions, which includes all the key packages:

[a list of Python distributions]

As you can see, people having experience with this topic tend to recommend using a third-party Python distribution.

I have so far used ActivePython, but Anaconda also appears to be a well-maintained project.

Whichever you take: it comes as a nice Windows installer and will give you a seamless Python experience.

like image 33
Dr. Jan-Philip Gehrcke Avatar answered Oct 09 '22 03:10

Dr. Jan-Philip Gehrcke