I am using MinGW on a 64-bit Windows machine. I am using Python 2.6.8. When I try to install numpy from http://sourceforge.net/projects/numpy/files/NumPy/ , the error comes up that it cannot find Python2.6 in the registry. Please walk me through what I should do.
Share
Do you have
pipinstalled? That would generally be the best way to install it.With
pipIf you don’t have
pip, do the following:curl http://python-distribute.org/distribute_setup.py | python. This provides you with tools you’ll need to install the package manager.curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python. This installs the package manager.Then run
pip install numpy, and it should install for you.If that doesn’t work
Sometimes on Windows machines, installing more complex Python packages throws errors like
Unable to find vcvarsall.batorgcc exited with status code 1or something along those lines, which are compilation errors. You can get around that by installing unofficial pre-compiled binaries, by runningThat installs a pre-compiled optimized binary of Numpy. This isn’t as perfect as installing it straight from the index, and sometimes there can be minor incompatibilities, but it should be fine for most purposes.
After this is completed, you should be able to
import numpywithout issue.