RuntimeError: Ninja is required to load C++ extensions

2.4k Views Asked by At

I've downloaded an implementation of stylegan2 from the following github:

I added the path to my PYTHONPATH variable and now when importing their models I get the following error:

RuntimeError: Ninja is required to load C++ extensions

I'm working on our University computers, it seems that cpp_extension.py is only looking for an installation of ninja that is local under /usr/local/bin however I don't have the permissions to install anything there. I was able to use pip to install Ninja on my virtual environment. Is there any possible way of having this piece of code use ninja from there?

Thanks

1

There are 1 best solutions below

0
On