Pytorch installation fails on Centos!

I am trying to install pytorch on centos 7 with python 3.5 installed. I am using: pip3 install torch torchvision. Unfortunately it fails with no error.

Downloading (496.4MB)
100% |████████████████████████████████| 496.4MB 144kB/s
Collecting torchvision
Downloading (48kB)
100% |████████████████████████████████| 51kB 25.7MB/s
Requirement already satisfied: pyyaml in /usr/local/lib/python3.5/site-packages (from torch) (3.12)
Requirement already satisfied: numpy in /usr/local/lib/python3.5/site-packages (from torch) (1.14.0)
Requirement already satisfied: six in /usr/local/lib/python3.5/site-packages (from torchvision) (1.11.0)
Requirement already satisfied: pillow>=4.1.1 in /usr/local/lib/python3.5/site-packages (from torchvision) (5.0.0)
Installing collected packages: torch, torchvision

here are more info:
$ name -a
Linux localhost.localdomain 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ pip --version
pip 10.0.0 from /usr/local/lib/python3.5/site-packages/pip (python 3.5)

Could anyone help, please?


I’m sorry but I don’t see any error in what you posted above. It just says that is is installing the corresponding packages.

that’s the problem. It exits without giving any errors.

I have anyway installed the Pytorch. However It seems it’s not using my GPU! Any though?

Do you have cuda installed?
The package you installed is for cuda 8.0.
Also do you changed your code to use the gpu? You can read the doc on cuda for example and more informations.

Hi Alban,

Yes, I did instalI Cuda 8.0. I finally made it work! thanks so much for following up with my issues.