赞
踩
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博客
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。