I know that there are lots of threads on gcc, particularly \"command gcc failed with exit status 1\", and I\'ve looked at them all and still have not been able to fix this.
I've just answered the same question: why does dllwrap give this error within pip?
_foo.exp: file not recognized: File format not recognized
Short answer: check your PATH. MinGW\bin needs to be near the start of it.
Long answer: see python pip package install fails , dllwrap error after 'fixing': "unable to find vcvarsall.bat"
I was having this issue in cygwin until I realised that the gcc-g++ package needed to be installed also. Now that I have both gcc-core and gcc-g++ installed, pip install pandas
works like a charm.
So, after a while, I stumbled across a post that so far has worked for me.
http://www.develer.com/oss/GccWinBinaries
This site provides an unofficial MinGW GCC binary (not supported/endorsed by MinGW) that is meant to integrate perfectly with Python, down to the automatic updating of paths. I installed it and bam, pip install cython
just started working.
Hope this helps more of you out there with this gcc problem.