Installing NumPy

和自甴很熟 提交于 2019-12-05 00:14:20


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 config
python install

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

Any suggestions?


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:

if you don't find it there use mine at:

How to install: 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



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.


Alternatively, depending on your time constraints and situation you could use Enthought's prepackaged python distribution for Windows. The free version: has everything you need except pygame which you should be able to install with easy_install once everything else is in place.


Open the Python shell and input as such:

>>> import pip
>>> pip.main(["install","numpy"])


In fact,the method of installing numpy is very easy and quick.First,make sure that Python has already been installed.Then,download the numpy module on sites,such as, which provides the numpy module for python2.6. Finally,double click the module,the rest you have to do is just let it go on.and,it will be installed naturally.


Just go here and download the graphical installer. It will install Numpy, Scipy and a tonne of other useful stuff.


This is a screenshot that can help, Note that I use Ubuntu as operating System