硬件设备
一台腾讯云服务器,配置使用最低的学生机即可,预先安装好ubuntu18
需要安装的库
Anaconda--python3.7
pytorch==1.3.0--cpu版本
torchvision==0.4.1--cpu版本
flask==0.12.2
具体安装步骤
Anaconda
使用wget命令下载好安装包,然后使用bash命令安装即可,安装包自然是选择在清华源上下载
清华源地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.03-Linux-x86_64.sh
bash Anaconda3-2019.03-Linux-x86_64.sh
接下来一路enter到底,有选项的输入yes就好了。
安装完后,使用conda验证下
如果出现
conda: command not found
则vim ~/.bashrc, 然后在最后加上
export PATH=~/root/anaconda3/bin:$PATH
然后source ~/.bashrc即可,为了让这个环境遍历一开机便能运行,还需要进行如下配置|