i installed pytorch using anaconda using the conda command on python 2.7
i am getting this error when trying to use print torch.rand(3,3).cuda()
Traceback (most recent call last):

File “”, line 1, in 
File “/home/tensor/anaconda3/envs/python2/lib/python2.7/site-packages/torch/_utils.py”, line 66, in cuda
return new_type(self.size()).copy(self, async)
File “/home/tensor/anaconda3/envs/python2/lib/python2.7/site-packages/torch/cuda/init.py”, line 266, in _lazy_new
_lazy_init()
File “/home/tensor/anaconda3/envs/python2/lib/python2.7/site-packages/torch/cuda/init.py”, line 84, in _lazy_init
_check_driver()
File “/home/tensor/anaconda3/envs/python2/lib/python2.7/site-packages/torch/cuda/init.py”, line 58, in _check_driver
http://www.nvidia.com/Download/index.aspx 4""")
AssertionError:
Found no NVIDIA driver on your system. Please check that you
have an NVIDIA GPU and installed a driver from
http://www.nvidia.com/Download/index.aspx 4