一、創(chuàng)建Conda虛擬Python環(huán)境
conda create -n [倉(cāng)庫(kù)名字] python=[版本]
二、激活環(huán)境
conda activate [倉(cāng)庫(kù)名字]
三、安裝PyTorch PyTorch官方
GPU:文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-695166.html
conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
CPU:文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-695166.html
conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cpuonly -c pytorch
到了這里,關(guān)于記錄深度學(xué)習(xí)常用指令(一)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!