简体   繁体   中英

Cygwin “error: command 'gcc' failed with exit status 1”

I was trying to download matplotlib which is required for a python program I'm trying to install and I keep getting:

"error: command 'gcc' failed with exit status 1"

I've seen several results for how to fix the problem on linux but haven't had much luck in finding a solution for me running python through cygwin. Could someone lead me in a direction to help solve this problem? I saw some results involving sudo apt-get but that was leading me down another path of trouble to work. Thanks.

I just had this problem, The answer was here https://github.com/matplotlib/matplotlib/issues/2463

"There is a variable called "_C" defined in lib/matplotlib/tri/_tri.h on line 821 and invoked in tri.cpp on lines 2180 and 2186. For some reason gcc doesn't like this (is it a reserved word in some architecture?). I just renamed the variable to "_Co" in both tri.h and tri.cpp, and the compilation finished successfully."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM