I want to install from source without anaconda and without GPU support. I have used the following:
export NO_CUDA=1
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
sudo python setup.py install

I get the following error:

[100%] Generating lib/libnccl.so
ls: cannot access ‘/usr/lib64/libcudart.so.’: No such file or directory
ls: cannot access '/usr/lib64/libcudart.so.’: No such file or directory
ls: cannot access ‘/usr/lib64/libcudart.so.’: No such file or directory
/bin/sh: 1: [: -lt: unexpected operator
ls: cannot access '/usr/lib64/libcudart.so.’: No such file or directory
ls: cannot access ‘/usr/lib64/libcudart.so.’: No such file or directory
ls: cannot access '/usr/lib64/libcudart.so.’: No such file or directory
ls: cannot access ‘/usr/lib64/libcudart.so.’: No such file or directory
Compiling src/libwrap.cu                      > /pytorch/torch/lib/build/nccl/obj/libwrap.o
ls: cannot access '/usr/lib64/libcudart.so.’: No such file or directory
nvcc fatal   : Unsupported gpu architecture ‘compute_60’
ls: cannot access ‘/usr/lib64/libcudart.so.*’: No such file or directory
Makefile:136: recipe for target ‘/pytorch/torch/lib/build/nccl/obj/libwrap.o’ failed
make[3]: *** [/pytorch/torch/lib/build/nccl/obj/libwrap.o] Error 1
CMakeFiles/nccl.dir/build.make:60: recipe for target ‘lib/libnccl.so’ failed
make[2]: *** [lib/libnccl.so] Error 2
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/nccl.dir/all’ failed
make[1]: *** [CMakeFiles/nccl.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2

How do I proceed with the installation? Thank you.