C:\Users\AliAbbas\Google Drive\Work\J.E.S.S\Cython\Code>python setup.py build_ex
t -i --compile=mingw32 -DMS_WIN64
running build_ext
Traceback (most recent call last):
File "setup.py", line 4, in <module>
setup(ext_modules = cythonize("HelloWorld.pyx"))
File "C:\Program Files\Python35\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Program Files\Python35\lib\distutils\dist.py", line 955, in run_comma
nds
self.run_command(cmd)
File "C:\Program Files\Python35\lib\distutils\dist.py", line 974, in run_comma
nd
cmd_obj.run()
File "C:\Program Files\Python35\lib\distutils\command\build_ext.py", line 308,
in run
force=self.force)
File "C:\Program Files\Python35\lib\distutils\ccompiler.py", line 1031, in new
_compiler
return klass(None, dry_run, force)
File "C:\Program Files\Python35\lib\distutils\cygwinccompiler.py", line 282, i
n __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "C:\Program Files\Python35\lib\distutils\cygwinccompiler.py", line 157, i
n __init__
self.dll_libraries = get_msvcr()
File "C:\Program Files\Python35\lib\distutils\cygwinccompiler.py", line 86, in
get_msvcr
raise ValueError("Unknown MS Compiler version %s " % msc_ver)
ValueError: Unknown MS Compiler version 1900
我一直在尝试编译这段代码几天,经过几次错误后,我来到这里,我不知道接下来要做什么。我已经安装了MingW32并且不知道下一步该做什么
我正在关注O'Reilly关于cython的书,使用Windows 8.1,并且一直在尝试使用Python 3.6.1和3.5.1
答案 0 :(得分:0)
您是否正在使用Python 3.5,您是否确保使用与Python构建匹配的编译器?谷歌搜索应该很快找到。 Visual Studio 2015社区适用于大多数Windows版本。我在你的帖子中看到你也尝试过Linux,这很可能是一些GCC变体。