Are you able to cd into an empty directory and import torch there? If so, I guess some scripts in your current wdir might be using “common” names and could thus interact with Python or PyTorch internals.