Dear Experts,
I have installed pytorch using conda as well as pip command on ubuntu 19.10 with non-CUDA GPU. However, on attempting verification as metioned on the Get-Started page, Iget error messages which can be found below.
Please guide to resolve this issue.
Thank you.
Best Regards,
Amit.
(base) amitjc@AMiT:~$ pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch==1.4.0+cpu
  Downloading https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp37-cp37m-linux_x86_64.whl (127.2 MB)
     |████████████████████████████████| 127.2 MB 82 kB/s 
Collecting torchvision==0.5.0+cpu
  Downloading https://download.pytorch.org/whl/cpu/torchvision-0.5.0%2Bcpu-cp37-cp37m-linux_x86_64.whl (5.4 MB)
     |████████████████████████████████| 5.4 MB 38 kB/s 
Requirement already satisfied: numpy in ./.local/lib/python3.7/site-packages (from torchvision==0.5.0+cpu) (1.18.2)
Collecting pillow>=4.1.1
  Downloading Pillow-7.1.1-cp37-cp37m-manylinux1_x86_64.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 8.2 MB/s 
Requirement already satisfied: six in ./miniconda3/lib/python3.7/site-packages (from torchvision==0.5.0+cpu) (1.14.0)
Installing collected packages: torch, pillow, torchvision
Successfully installed pillow-7.1.1 torch-1.4.0+cpu torchvision-0.5.0+cpu
(base) amitjc@AMiT:~$ from __future__ import print_function
from: can't read /var/mail/__future__
(base) amitjc@AMiT:~$ import torch

Command 'import' not found, but can be installed with:

sudo apt install graphicsmagick-imagemagick-compat  # version 1.4+really1.3.33+hg16115-1, or
sudo apt install imagemagick-6.q16                  # version 8:6.9.10.23+dfsg-2.1ubuntu3.1
sudo apt install imagemagick-6.q16hdri              # version 8:6.9.10.23+dfsg-2.1ubuntu3.1

(base) amitjc@AMiT:~$ 
(base) amitjc@AMiT:~$ x = torch.rand(5, 3)
bash: syntax error near unexpected token `('
(base) amitjc@AMiT:~$ print(x)
bash: syntax error near unexpected token `x'