The general principle: Anaconda is recommended to configure (to help solve the problem pytorch dependent libraries)
First, install Anaconda3
1、sudo cur install
2、curl -0 https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh
3、sh Anaconda3-5.2.0-Linux-x86_64.sh
4、yes
5、no
Ubuntu re-open Terminal window, you can use the command conda
Second, install pytorch
conda install pytorch-cpu torchvision-cpu -c pytorch
Wait for the installation to complete