That’s good to know.
Did you start this REPL session using python or ipython?
I assume IPython might yield these problems.
Could you create a new conda environment and install PyTorch and all other dependencies there?