Building 64-bit C Python extensions on Windows

后端 未结 2 771
北恋
北恋 2020-12-13 06:55

I am asking this question because I need to build a specific module (aspell_python, http://wm.ite.pl/proj/aspell-python/) to work with my 64-bit Python 2.6 which runs on a W

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 07:31

    I've successfully compiled C extensions for Python on 64-bit Windows before by running the following commands from the "Visual Studio 2008 x64 Win64 Command Prompt" in the top level directory of the source distribution of the extension:

    set DISTUTILS_USE_SDK=1
    set MSSdk=1
    python setup.py install
    

提交回复
热议问题