错误:
Traceback (most recent call last):
File "/.../lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 949, in _build_extension_module
check=True)
File "/.../lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
解决:
编辑
/.../lib/python3.6/site-packages/torch/utils/cpp_extension.py
把第
945
行和第
952
行中的[‘ninja’, ‘-v’]改为[‘ninja’, ‘–version’](图片中已经改过了)
版权声明:本文为weixin_43731803原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。