chrigi2333
chrigi2333

Reputation: 11

Not able to install the python-module numpy

After hours of trying I'm still not able to install numpy. I READ LOTS OF HINTS, ANSWERS USW. BUT IT DOESN'T HELP. Furthermore I have windows 7, 32 bit, Python 27.

What I did:

  1. download numpy-1.10.2.zip: http://sourceforge.net/projects/numpy/files/

  2. unzip it

  3. start the windows command prompt and input: cd C:\Users\myname\Desktop\numpy-1.10.2

  4. now it appears: C:\Users\myname\Desktop\numpy-1.10.2>

  5. I input: python setup.py install

  6. and there appears an error:

    Running from numpy source directory.
    Traceback (most recent call last):
    File "setup.py", line 263, in <module>
        setup_package()
    File "setup.py", line 246, in setup_pa
        import setuptools
    ImportError: No module named setuptools
    

I hope somebody can help me or even better IS THERE NOT EASIER WAY TO INSTALL NUMPY OR OTHER MODULES??

Upvotes: 0

Views: 890

Answers (2)

ev-br
ev-br

Reputation: 26040

Building numpy from source on windows is non-trivial. Best use official binaries (http://sourceforge.net/projects/numpy/files/NumPy/1.10.2/) or Gohlke binaries (http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy) or a distribution like Anaconda or Canopy or WinPython.

Upvotes: 2

andreas-hofmann
andreas-hofmann

Reputation: 2518

You need to install the setuptools package as well. See here.

A more easy way to install python packages is using pip, which resolves package dependencies automatically. See here. Pip should be included in your python installation if you use a recent version.

You should succeed by calling pip install numpy.

Upvotes: -1

Related Questions