尝试在 Windows 上调用 cffi.FFI.verify() 将产生此错误:
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
我想用mingw来编译而不是msvc。我试图通过创建 c:\Python27\Lib\distutils\distutils.cfg 来让 distutils 使用 mingw
[build]
compiler = mingw32
但这似乎不影响 cffi,我仍然得到 vcvarsall.bat 丢失错误。
那么如何让 cffi 使用 gcc/mingw (或一般其他 C 编译器)?