Pytorch
安装Pytorch
安装anaconda并配置国内源
https://www.cnblogs.com/alanjiang/p/17535912.html
根据配置生成安装命令
因为我使用的是笔记本,所以仅安装cpu版本
conda install pytorch torchvision torchaudio cpuonly -c pytorch
报错解决
- 无写入权限
EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
environment location: /opt/anaconda3
uid: 1000
gid: 1000
sudo chown -R user anaconda3 #因为安装时我没有安装到用户目录下,所以没有权限
本文来自博客园,作者:Alan-Blog,转载请注明原文链接:https://www.cnblogs.com/alanjiang/p/17549286.html