Could you try to activate your conda environment, uninstall all possible PyTorch packages using
pip uninstall torch
pip uninstall torch
conda uninstall pytorch

and then try to reinstall it?
I’m not sure what might go wrong, if you just open a REPL session and try to import torch after installing it.
Also, make sure your working directory (from which you call python in the terminal) is not in any PyTorch source folder.