跑一段神經網路的代碼,提示此錯誤,但我是有 ninja 這個包的,請問如何解決?請各位大神幫幫忙!謝謝!
這段是報錯的代碼:
def verify_ninja_availability():
'''
Returns ``True`` if the `ninja <https://ninja-build.org/>`_ build system is
available on the system.
'''
with open(os.devnull, 'wb') as devnull:
try:
subprocess.check_call('ninja --version'.split(), stdout=devnull)
except OSError:
raise RuntimeError("Ninja is required to load C++ extensions")
else:
return True
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/8082.html
上一篇:c++ builder的TEdit、TButton如何實作矩型圓角
下一篇:大佬直接寫代碼吧
