conda list | grep torch shows the PyTorch installation in your custom environment?
If you start a REPL session using python in your terminal, can you import torch then?
Are there other PyTorch-related files in your working directory, e.g. the source code from another installation?