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 https://files.pythonhosted.org/packages/e8/c5/0763a145e051ce7c84c128621693d1c5dfad5a42d551e8d79742261002e2/torch-0.3.1-cp35-cp35m-manylinux1_x86_64.whl (496.4MB)
100% |████████████████████████████████| 496.4MB 144kB/s
Collecting torchvision
Downloading https://files.pythonhosted.org/packages/e9/c9/f4eb36734bffd36eb8095247d816cbe6aeca0a2b9218b78678288edfdb92/torchvision-0.2.0-py2.py3-none-any.whl (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?

Hi,

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.

Best,
-H