Error: command 'gcc' failed: No such file or directory

gcc, installation, mingw, python, windows

Solution

After hours and hours of searching, I've discovered that this is a problem between MinGW and Python. They don't communicate well with one another.

There exists a binary package of MinGW (unofficial) that was meant for use with Python located here

It fixes the problem!

Problem

I'm trying to run a ``` python setup.py build --compiler=mingw32 ``` but it results in the error mentioned in the subject: ``` error: command 'gcc' failed: No such file or directory ``` but I am capable of running gcc from command prompt (i have added it to my PATH env var): ``` >gcc gcc: fatal error: no input files compilation terminated ``` I'm running on Windows 7 64-bit. Python27. Specific source I'm trying to build: OpenPIV Previous Post on this issue. Any help/advice/solutions will be greatly appreciated.

Original source