我是cython的新手,我正在尝试编译以下代码
python setup.py build_ext --inplace --compiler=mingw32
使用命令
为此目的使用mingw32编译器running build_ext
Traceback (most recent call last):
File "setup.py", line 4, in <module>
ext_modules=cythonize('helloworld.pyx'),
File "C:\Python34\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Python34\lib\distutils\command\build_ext.py", line 308, in run
force=self.force)
File "C:\Python34\lib\distutils\ccompiler.py", line 1031, in new_compiler
return klass(None, dry_run, force)
File "C:\Python34\lib\distutils\cygwinccompiler.py", line 282, in __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "C:\Python34\lib\distutils\cygwinccompiler.py", line 126, in __init__
if self.ld_version >= "2.10.90":
TypeError: unorderable types: NoneType() >= str()
然而,这会产生错误
{{1}}
我很久没遇到这个部分。我在windows10系统中使用python3.4。提前谢谢你