I am also running into this issue when installing Pytorch within an Ubuntu based Singularity container. The container does not make use of Anaconda, so it can’t be a mixup of python paths in my case.
What would happen if we tried going to an older version of torch, say 0.2.0? Would there be any glaring issues there?