Hi @ptrblck,
I did all that you advised. uninstalled torch completely and installed with either the conda or pip but no luck with either of them.
Although the problem in my case is importing torch in a jupyter notebook. No error while running any script from the terminal but error shows up in importing torch in a jupyter notebook. I also made new environment but still the error persists. Tried on different python versions as well. Please help!
Using Ubuntu and Anaconda.
When conda  list | grep torch gave
torch                     1.6.0                    pypi_0    pypi
torchvision               0.7.0                    pypi_0    pypi

when installed with pip and
pytorch                   1.0.0           py3.7_cuda9.0.176_cudnn7.4.1_1    pytorch
torchvision               0.2.2                      py_3    pytorch

when installed with conda using the command on official site. Not working in any case!
Thanks!