BEVFormer icon indicating copy to clipboard operation
BEVFormer copied to clipboard

安装mmcv报错

Open Chenjiayu20220326 opened this issue 2 years ago • 2 comments

报错为: C:\Users\PC\AppData\Local\Temp\pip-install-undsgfsx\mmcv-full_7b94ce8390804870b7adc07a2c6321d9\mmcv\ops\csrc\pytorch\cuda\psamask_cuda.cu(5): fatal error C1083: 无法打开包括文件: “THC/THC.h”: No such file or directory psamask_cuda.cu error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin\nvcc.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for mmcv-full Running setup.py clean for mmcv-full Failed to build mmcv-full ERROR: Could not build wheels for mmcv-full, which is required to install pyproject.toml-based projects

环境: cuda:11.3 torch:1.11.0

Chenjiayu20220326 avatar Aug 02 '23 08:08 Chenjiayu20220326

请问您的问题解决了吗

MillionaireChen avatar Jan 22 '24 08:01 MillionaireChen

You didn't choose a valid torch and cuda version combination, so there are no corresponding prebuilt mmcv wheels. Visit the url in the install command after -f, for example https://download.openmmlab.com/mmcv/dist/cu115/torch1.11.0/index.html, to find out if it's a valid combination. You should see links for prebuilt wheels if it's valid, instead of a NoSuchKey error.

FrzMtrsprt avatar Mar 07 '24 06:03 FrzMtrsprt