gcc compilation error from python

后端 未结 3 1185
北海茫月
北海茫月 2020-12-31 13:11

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.

相关标签:
3条回答
  • 2020-12-31 13:51

    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"

    0 讨论(0)
  • 2020-12-31 13:54

    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.

    0 讨论(0)
  • 2020-12-31 13:59

    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.

    0 讨论(0)
提交回复
热议问题