Study/Python

Pytorch 설치중 conflict 발생

shan00 2025. 2. 2. 05:35

 

official document에 있는 명령어로 설치하다가 가끔 environment conflict가 발생하곤한다. 무슨 이유인지 명확히는 나오진 않지만, 시스템이나 기저에 있는 파이썬 버전과 충돌이 발생한 것으로 보인다.

 

conda install pytorch torchvision torchaudio -c pytorch -c conda-forge

 

이 명령어로 대체하면, 주어진 환경에 맞는 최신 버전이 자동으로 설치된다.

 

특정 버전이 꼭 필요하지 않으면 좋은 선택지인 것 같다.

 

Reference: https://github.com/pytorch/pytorch/issues/59222