Hello,
Can you help me? I tried almost all that I could find on the web but still get an error message.
Basically, I created a new conda environment and installed pytorch in a computer cluster.
It seems correctly installed but I still get the error message "ModuleNotFoundError: No module named ‘torch.’
(env_pytorch) [asidasi@hpcc ~]$
(env_pytorch) [asidasi@hpcc ~]$ python -c “import torch”
Traceback (most recent call last):
File “”, line 1, in 
ModuleNotFoundError: No module named ‘torch’
(env_pytorch) [asidasi@hpcc ~]$
(env_pytorch) [asidasi@hpcc ~]$
(env_pytorch) [asidasi@hpcc ~]$ conda list | grep torch
packages in environment at /home/asidasi/.conda/envs/env_pytorch:
ffmpeg                    4.3                  hf484d3e_0    pytorch
pytorch                   1.8.0           py3.6_cuda10.2_cudnn7.6.5_0    pytorch
torchaudio                0.8.0                      py36    pytorch
torchvision               0.9.0                py36_cu102    pytorch
(env_pytorch) [asidasi@hpcc ~]$