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,linux,运维)