numpy Installation on Windows


Numpy installation through pypi (the default package index used by pip) generally fails on Windows computers. The easiest way to install on Windows is by using precompiled binaries.

One source for precompiled wheels of many packages is Christopher Gohkle's site. Choose a version according to your Python version and system. An example for Python 3.5 on a 64 bit system:

  1. Download numpy-1.11.1+mkl-cp35-cp35m-win_amd64.whl from here
  2. Open a Windows terminal (cmd or powershell)
  3. Type the command pip install C:\path_to_download\numpy-1.11.1+mkl-cp35-cp35m-win_amd64.whl

If you don't want to mess around with single packages, you can use the Winpython distribution which bundles most packages together and provides a confined environment to work with. Similarly, the Anaconda Python distrubution comes pre-installed with numpy and numerous other common packages.

Another popular source is the conda package manager, which also supports virtual environments.

  1. Download and install conda.
  2. Open a Windows terminal.
  3. Type the command conda install numpy