参考教程:https://blog.csdn.net/weixin_43735353/article/details/107286466
安装anaconda
- 运行命令行下载anaconda
wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
- 安装anaconda
bash Anaconda3-2020.02-Linux-x86_64.sh
一直回车或者yes
最后重启服务器,运行conda命令,出现下面的就成功了
配置pytorch环境
- 创建虚拟环境
conda create -n torch python=3.7 numpy matplotlib pandas anaconda
输入y继续
创建完成
- 激活环境
source activate torch
-
官网找下载命令
https://pytorch.org/get-started/locally/
-
安装完成