1.conda創(chuàng)建虛擬環(huán)境
conda create --name pytorch3.7 python=3.7
2.激活虛擬環(huán)境
conda activate pytorch3.7
3.安裝 pytorch
去 pytorch 官網(wǎng)找對(duì)應(yīng)的版本:
https://pytorch.org/get-started/previous-versions/
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-791335.html
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=10.2 -c pytorch
酷酷下載······文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-791335.html
到了這里,關(guān)于cuda10.2安裝python3.7pytorch的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!