win10下安装Detectron2出错可能的解决方案

1.RuntimeError: Error compiling objects for extension

2.Command '['ninja', '-v']' returned non-zero exit status 1

按照网上都能找到的方法试了个遍,到头来错误还是他俩

这时候华点出现了

大家应该都有五六个虚拟环境,pytorch版本估计都乱成一锅粥了把

在你现在装detectron2的虚拟环境中,conda list再pip list一下,我发现我的torchvision竟然不一致,果断把conda uninstall一个(conda uninstall就是卸载conda list显示的那个),然后,setup程序跟进入循环了一样输出了两三遍一模一样的东西,最后一遍如下

看到循环不用怕,按我的经验来说,能看见这个downloading,你就已经成功了,最后就成功安装了ovo,希望能帮到有缘人

猜你喜欢

转载自blog.csdn.net/imok1234567/article/details/124716331
今日推荐