Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing NumPy

Tags:

python

numpy

I have Windows Vista and am running Python 2.7. I am having trouble installing some Python libraries including, NumPy, SciPy, and pygame. I am currently trying to copy the NumPy file straight to my computer (C:\numpy) and then unziping the file there. In a command prompt I then run the code;

cd c:\numpy
python setup.py config
python setup.py install

When I get to the "python setup.py config" part, the command prompt says "this is the wrong setup.py file to run"

Any suggestions?

like image 921
Tyson Avatar asked Sep 27 '11 00:09

Tyson


2 Answers

This is the ANSWER for installing numpy on Windows 8 64 bit.

All you need is:

1.Python, installed in your system, in my case its c:\Python27, its 2.7 version.

2.Install pip if not available.

  1. download "numpy-1.9.2+mkl-cp27-none-win_amd64.whl" file for 64 bit, you can find this here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

if you don't find it there use mine at: https://github.com/pawanputtaswamy/Libs

How to install:

1.open command prompt (Windows + r and type cmd)

2.Go to pip directory, in my case (cd c:\Python27\Scripts\pip.exe)

3.Run the following command: pip.exe install \numpy-1.9.2+mkl-cp27-none-win_amd64.whl

Done

like image 117
Pawan Avatar answered Oct 05 '22 06:10

Pawan


Numpy, Scypy and pygame all have windows installers; You are advised to use these installers in favor of archive versions. Make sure you match the version (3.2, 2.7) and archetecture (i386 or x86_64) as the python binary you have installed.

like image 26
SingleNegationElimination Avatar answered Oct 05 '22 06:10

SingleNegationElimination