After installing pytorch from source, along with CUDA and CUDNN, I am only able to successfully import torch from the pytorch directory, so know that the installation has all of the required modules.
However, In any other directory, I get an error:
import torch
Traceback (most recent call last):
File “”, line 1, in 
File “/home/tom/.virtualenvs/vm4ml/lib/python3.7/site-packages/torch/init.py”, line 267, in 
_C._initExtension(manager_path())
AttributeError: module ‘torch’ has no attribute ‘QUInt4x2Storage’
How to approach this problem?