我正在尝试运行从GitHub获得的更快的r cnn tf代码。所有这些代码都需要运行“ make”命令来运行Cython(如果我错了,请纠正我)。但是每次我运行make命令时,对于每个代码我总是遇到相同的问题。
我将Windows 10 Professional与python 3.5一起使用 我的tensorflow版本是1.8.0,带有gpu和CUDA 9.0
这是命令行中的错误:
python setup.py build_ext --inplace
running build_ext
Traceback (most recent call last):
File "setup.py", line 150, in <module>
cmdclass={'build_ext': custom_build_ext},
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\distutils\command\build_ext.py", line 338, in run
self.build_extensions()
File "setup.py", line 104, in build_extensions
customize_compiler_for_nvcc(self.compiler)
File "setup.py", line 77, in customize_compiler_for_nvcc
default_compiler_so = self.compiler_so
AttributeError: 'MSVCCompiler' object has no attribute 'compiler_so'
make: *** [all] Error 1
答案 0 :(得分:0)
.compiler_so
字段is only present in distutils.unixcompiler.UnixCCompiler
and derivatives。
因此,此软件包不支持标准的Windows构建环境。
根据Build from source on Windows | TensorFlow,它应该使用MSYS2构建。