5. 파이썬
파이썬/장고/2021-11-15/ 파이토치 설치 쿠다툴킷, 파이토치 설치
패스트코드블로그
2021. 11. 15. 18:50
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge
import torch
if __name__ == '__main__':
print(f'Result: {torch.cuda.is_available()}')
아래 링크로 가서 torchtext 를 검색해서 입력 명령어를 카피한다.
https://anaconda.org/pytorch/torchtext