Could you describe your setup a bit more, please?
I.e. in particular:

how did you install PyTorch
what exactly are you trying to import
is import torch also taking a long time
is this a new issue, was it working before, or always hanging/slow?