Cython won't compile on Windows 7 x64

前端 未结 1 427
旧巷少年郎
旧巷少年郎 2021-01-12 09:28

I\'m struggling with installing Cython on Windows 7 x64. I downloaded and installed the automated MinGW installer. The created a distutils.cfg to the distutils

相关标签:
1条回答
  • 2021-01-12 09:36

    There are pre-compiled Cython packages on this site. I'd suggest you to switch to x86 Python, you gain no real advantage by using the x64 version. If you want to stick with x64, you can't use MingW and you have to use MS SDK C++ compiler (more on this).

    Do not use MinGW-w64. As you will notice, the MinGW import library for Python (e.g. libpython27.a) is omitted from the AMD64 version of Python. This is deliberate. Do not try to make one using dlltool. [...] There have also been issues with the mingw runtime conflicting with the MSVC runtime; this can happen from places you don't expect, such as inside runtime libraries for g++ or gfortran.

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