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.

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-05 11:56:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-05 11:56:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-05 11:56:02       87 阅读
  4. Python语言-面向对象

    2024-01-05 11:56:02       96 阅读

热门阅读

  1. C#请求队列后台服务

    2024-01-05 11:56:02       51 阅读
  2. Vue3.4的新变化

    2024-01-05 11:56:02       58 阅读
  3. Android 收集崩溃(crash)日志并输出到本地

    2024-01-05 11:56:02       66 阅读
  4. css+html 笔记1

    2024-01-05 11:56:02       61 阅读