EulerOS版本:EulerOS-V2.0SP5-x86_64
一、pytorch-cpu版本安装
步骤1:安装anaconda
(版本:Anaconda3-2020.11-Linux-x86_64.sh)
教程链接:https://blog.csdn.net/qq_34387412/article/details/110086141
步骤2:配置环境,导入清华镜像
教程链接:https://blog.csdn.net/qq_43145072/article/details/93900250
步骤3:安装opencv
安装指令:pip install opencv-python
步骤4:安装pytorch=torchvision+torchaudio
a.进入pytoch官网:https://download.pytorch.org/whl/torch_stable.html
b.选择安装配置
c.生成安装指令:
pip3 install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio==0.8.1 -f