Python 3.4: compile cython module for 64-bit windows

后端 未结 1 2039
不知归路
不知归路 2021-02-04 15:02

I have a .pyx module that I\'ve been trying to compile for use with 64-bit python 3.4 on Windows through various means but with no success.

After a lot of trial and erro

相关标签:
1条回答
  • Ok, at long last I managed to make it work.

    The fantastic resources by Christoph Gohlke (http://www.lfd.uci.edu/~gohlke/pythonlibs) are key.

    1. Install your desired Python version in the conventional way
    2. Install any extensions you need from Gohlke's site
    3. Install MinGW-w64 from http://tdm-gcc.tdragon.net/download
    4. Patch distutils as per http://bugs.python.org/issue11723
    5. Install the appropriate version of libpython from Gohlke's site
    6. Bob's yer uncle

    (Trying all sorts of wild suggestions for this task, I have gone through many more steps but as far as I can tell, these are the only ones that actually made a difference in the end)

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