Good day. You need to perform an XSLT conversion on Python 2.7, for this you need to install the PyXML library. But when installing, an error appears

cc1.exe: error: unrecognized command line option '-mno-cygwin' error: command 'gcc' failed with exit status 1 

And I installed gcc (MinGW). The question is how to fix the error? Alternative XSLT transformation methods are possible. I do everything under Windows 7.

  • one
    I respect the archaeologists. 2004! MinGW was definitely there, but it was often recommended not to use it. Try building gcc under cygwin. The -mno-cygwin key is from there. But I can’t give you more detailed instructions. In extreme cases, you can use python 2.7 under cygwin if you have problems using the package under native-python - alexlz
  • Is there a reason why you don’t use lxml for xslt in Python? According to the recollection, it is better to avoid pyxml. - jfs

1 answer 1

Understood.

Just in MinGW some options were removed, such as -mno-cygwin . The problem is solved by commenting on the required options in the cygwinccompiler.py file.