My environment is ubuntu 18.04.1, cuda 10.0, gcc 7.4.0, and pytorch 1.6.0.
I follow the instruction and install nvdiffrast in local Python site-packages by running
pip install .at the root of the repository
then I run the the script as follows:
python samples/torch/triangle.py
error accurs:
File "/root/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 974, in load
keep_intermediates=keep_intermediates)
File "/root/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1179, in _jit_compile
with_cuda=with_cuda)
File "/root/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1246, in _write_ninja_file_and_build_library
verify_ninja_availability()
File "/root/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1302, in verify_ninja_availability
raise RuntimeError("Ninja is required to load C++ extensions")
RuntimeError: Ninja is required to load C++ extensions
My environment is ubuntu 18.04.1, cuda 10.0, gcc 7.4.0, and pytorch 1.6.0. I follow the instruction and install nvdiffrast in local Python site-packages by running
pip install .
at the root of the repository then I run the the script as follows:python samples/torch/triangle.py
error accurs:then I install
ninja
as follows:rerun the script:
and got the error:
so I go to
/root/miniconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py
and modifyto
then rerun the script but got error as follows:
anyone can help me ? Thanks !!!