cd detectron2 python setup.py build --force develop
报错:
File "/tmp/pip-build-env-xsd6d80w/overlay/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 413, in _check_cuda_version raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda)) RuntimeError: The detected CUDA version (10.0) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions.
In file included from /usr/local/cuda-10.0/include/cuda_runtime.h:83, from <command-line>: /usr/local/cuda-10.0/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported! 129 | #error -- unsupported GNU version! gcc versions later than 7 are not supported! | ^~~~~ error: command '/usr/local/cuda-10.0/bin/nvcc' failed with exit code 1
Reprint policy:
All articles in this blog are used except for special statements
CC BY 4.0
reprint polocy. If reproduced, please indicate source
CuberSugar
!