当前位置:   article > 正文

ERROR: Failed building wheel for mmcvERROR: ERROR: Failed to build installable wheels for some pypro

error: error: failed to build installable wheels for some pyproject.toml bas

 note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mmcv
  Running setup.py clean for mmcv
Failed to build mmcv
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mmcv)

看了mmcv的github上的issue,有说将pytorch的版本降低到1.X 。但是试了一下,发现还是会报错。

然后看到了这个解决方案,试了一下,成功解决问题。

点进链接Installation — mmcv 2.2.0 documentation

先查一下自己的torch和cuda的版本,然后在下拉框选择自己的版本,复制pip然后运行就好了。

mmcv的版本具体看你的项目要求的版本。

---------------------------------------------------------------------------------------------------------------------------------

如果发现cuda版本和pytorch版本选项没有符合自己项目的,可以查看这篇博客[解决]AssertionError: MMCV==2.0.0 is used but incompatible. Please install mmcv>=1.3.17, <=1.8.0._assertionerror: mmcv==2.1.0 is used but incompatib-CSDN博客

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号