【发布时间】:2019-04-09 21:17:53
【问题描述】:
按照here 的建议,我已经成功安装了Microsoft Visual C++ Compiler for Python 2.7 来编译一些 Cython 代码,但是:
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules = cythonize("module1.pyx"))
仍然产生:
错误:无法找到 vcvarsall.bat
如何使用 Python 2.7 编译 Cython 代码(例如在 Windows 7 x64 上)?
注意:我已经仔细阅读了问题error: Unable to find vcvarsall.bat,但主要答案(包括修改msvc9compiler.py)并没有解决。
【问题讨论】:
标签: python windows visual-c++ cython distutils