Solved by albanD in post #2 
              
              
                Hi, 
This most likely happens because you have a local file called torch.py. And so when you do import torch, it tries to import that local file instead of the torch library. You should not have a file (or folder) with the same name as a library you use locally to avoid issues