综述
RuntimeError: Ninja is required to load C++ extensions
之前使用python实现的项目,优化框架不够高效,准备转到C++
解决
安装ninja
第一步:
安装chocolatey : https://chocolatey.org/install
在powershell中运行管理员权限,输入你copy的安装代码。
第二步:
choco install ninja
包位置:
‘C:\ProgramData\chocolatey\lib\ninja\tools’