参考资料:https://www.linode.com/docs/guides/pytorch-installation-ubuntu-2004/
sudo apt update
sudo apt install nvidia-cuda-toolkit (3G)
mkdir anaconda
cd ~/anaconda
wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
chmod +x ./Anaconda3-2020.11-Linux-x86_64.sh
sudo ./Anaconda3-2020.11-Linux-x86_64.sh
Scroll through the license agreement and agree to it by entering Yes. Indicate the destination directory for Anaconda. The default directory is ~/anaconda.
注意:在安装 anaconda 的时候(执行 Anaconda3-2020.11-Linux-x86_64.sh 脚本的时候),会要求你输入安装目录,这里我们不能提前 mkdir 那个目录,路径必须设定为一个不存在的路径才不会报错
TODO: here
The installer prompts you to initialize Anaconda3 by running conda init. We recommend entering yes (if you enter no, conda cannot modify your shell scripts).
You are now ready to install PyTorch and PyTorch tools using Anaconda. From the ~/anaconda directory install PyTorch:
conda inst

最低0.47元/天 解锁文章
1001

被折叠的 条评论
为什么被折叠?



