[vscode] conda | pytorch 설치 시 문제

dusruddl2·2024년 2월 3일

error

목록 보기
2/4

문제

https://pytorch.org/get-started/locally/

conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia

그러나 오류

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

파이토치를 설치할 때 자꾸 이런 오류가 발생하는 이유가
conda의 버전이 낮기 때문이라며..

그래서 모든 방법을 다 시도해봤다

conda install -c conda-forge conda
conda install conda=23.11.0

conda update -n base -c defaults conda
conda update -n base -c conda-forge conda
conda update --all

이게 맞아...?
설치 전후로 version을 계속 출력해봤지만

conda --version

conda 22.11.1로 절대 변하지 않았다... 부글부글


conda config --add channels conda-forge

https://velog.io/@icfxg014/Anaconda-Conda-update-%EB%B0%98%EC%98%81-%EC%95%88%EB%90%A8update-%ED%9B%84%EC%97%90%EB%8F%84-%EB%B2%84%EC%A0%84-%EB%B3%80%EA%B2%BD-%EC%97%86%EC%9D%8C

conda update -n base -c defaults conda --repodata-fn=repodata.json

https://github.com/conda/conda/issues/12519#issuecomment-1483106227

다음과 같은 방법들도 절대 해결을 도와주지 못했음..

해결

conda install pytorch torchvision -c pytorch

https://kimtaeuk0103.tistory.com/44


뭐죠? 이걸로 해결했습니다...^^
6시간 이상동안 뻘짓했지만 의미있는 삽질이었기를..

+++ 결국 나의 경우에는 이 문제가 아니었다.. 다음 게시물에서 해결! (RTX3090)

profile
정리된 글은 https://dusruddl2.tistory.com/로 이동

0개의 댓글