I have the same issue (torch.version.cuda returns none) and I have tried uninstalling cpu only and it has not helped.
I have CUDA 11.2 and Pytorch 1.8.0 installed with GeForce MX150.
I am very new to coding in general so really confused as to why this is happening.