이슈 해결

RuntimeError: The detected CUDA version (11.8) mismatches the version that was used to compile PyTorch (12.1).

성실한 당근농부 2024. 12. 11. 18:22

 

 

RuntimeError: The detected CUDA version (11.8) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for detectron2 Running setup.py clean for detectron2 Building wheel for fvcore (setup.py) ... done Created wheel for fvcore: filename=fvcore-0.1.5.post20221221-py3-none-any.whl size=61400 sha256=5428f28960e76d32e20c1a345ada6189e1337c8aff87b82b1821b2de4af000b0 Stored in directory: /root/.cache/pip/wheels/01/c0/af/77c1cf53a1be9e42a52b48e5af2169d40ec2e89f7362489dd0 Building wheel for antlr4-python3-runtime (setup.py) ... done Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144554 sha256=4893864c74fd9b77da63ef15c56b17cedaa0b2e831d7b52508e217adb79cb2f4 Stored in directory: /root/.cache/pip/wheels/12/93/dd/1f6a127edc45659556564c5730f6d4e300888f4bca2d4c5a88 Successfully built fvcore antlr4-python3-runtime Failed to build detectron2 ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (detectron2)

 

문제 발생 상황

https://github.com/moka-manipulation/moka Detectron2 설치 중 에러 발생

 

 

해결

아래 링크한 글을 참고해서 torch부터 재설치 후 다시 설치 진행하는 방식으로 해결 완료

pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118

 


 

🔗 참고 링크

https://github.com/vllm-project/vllm/issues/1453

728x90