1.RuntimeError: Error compiling objects for extension
2.Command '['ninja', '-v']' returned non-zero exit status 1
I tried all the methods I could find on the Internet, but in the end the error was still the two of them
At this time Huadian appeared
Everyone should have five or six virtual environments, and the pytorch version is probably a mess
In the virtual environment where you installed detectron2, check the conda list and then the pip list. I found that my torchvision is inconsistent, so I decisively uninstall one of conda (conda uninstall is the one displayed in the uninstall conda list), and then the setup program enters a loop I also output the same thing two or three times, and the last one is as follows
Don’t be afraid to see the cycle. According to my experience, if you can see this downloading, you have succeeded. In the end, you have successfully installed ovo. I hope it can help someone who is destined