本文主要是介绍Ubuntu envs setting,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1. change the chmod of folders
sudo chown -R $USER:$USER /home/anaconda3
2. torch.cuda.is_available()返回false
change conda installation to pip. zai qi ta huan jing pei zhi dou mei wen ti de qing kuang xia , zai shi shi zhe ge fang fa.
# CUDA 11.7
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
# CUDA 11.7
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
3.
这篇关于Ubuntu envs setting的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!