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

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.



Solution 1:[1]

You need to install it first by using the following command

sudo apt-get install gcc

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 umraz hussain