r/Python • u/JewishIGuess • Jun 08 '15
Installing Numpy is not working
I have 64-bit windows, python 3.4, and I need to install numpy. I've downloaded it from multiple sources, and followed multiple sets of instructions. But anything I do in the command prompt throws an error, either from pip for from the file location where numpy is.
Could somebody walk me through, step by step by step, what to do to install numpy? It would be greatly appreciated.
0
Upvotes
2
u/Mashidin Jun 08 '15
I do quite a bit of python dev on my windows machine and have run in to this issue before. My solution is that I have MINGW installed. It has bunch of fun UNIX tools included, one of which is gcc the gnu C compiler. The problem you have, I believe is that python cannot find the compiler you wish to use to build all the C binaries. I fought a bit with the solution where I deal with the compiler included with VS 2008 and that turn out to be smarter than me. So once you install and understand MINGW (which is super simple) you configure distutils to point to MINGW. This check list that I stole explains it pretty well: 1.I have Python already installed 2. I installed mingw32 to C:\programs\mingw
3.Add mingw32's bin directory to your environment variable: append c:\programs\MinGW\bin; to the PATH 4.(create if not existing) distutils.cfg file located at C:\PythonXX\Lib\distutils\distutils.cfg to be:
[build] compiler=mingw32
Your mileage my vary.