我正在尝试安装pydasm,但遇到错误,不知道如何继续。python的版本是2.7,操作系统是WinXP。
python setup.py build_ext --compiler=mingw32
running build_ext
building 'pydasm' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Pytho
n27\include -IC:\Python27\PC -c ../libdasm.c -o build\temp.win32-2.7\Release\..\
libdasm.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
似乎最新的 MinGW 不再支持 -mno-cygwin,但 python 2.7 disutils 模块仍在使用它。如何解决?