python에 의존성 설치를 requirements.txt로 하고 있는데
느작없이 에러가 났다
ERROR: Could not find a version that satisfies the requirement torch==2.5.1+cu118 (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0)
ERROR: No matching distribution found for torch==2.5.1+cu118
뭔데 갑자기?
하고 당황해서 실제 엔비디아 들어가서 cuda 설치도 하고
스택오버플로우, 클로드, 지피티 모두에게 물어보고 곤혹을 치뤘다..
왜 안되는건데!!
하다가 우연히 발견한 글
pip에서 혹은 conda에서 직접 설치는 안된다?
그럼 링크 따와서 설치하란건가?
맞았다.. 정답이었다..
pip를 사용할 경우
pip install torch==2.5.1 torchvision==0.16.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu118
conda를 사용할 경우
conda install pytorch=2.5.1 torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
부디 나같은 실수를 하지 않길 바라며..
내 3시간을 위해.. 짠..