ModuleNotFoundError: No module named 'torch'
I try to use pytorch module by conda but I get an error

Traceback (most recent call last):
File "train.py", line 8, in &lt;module&gt;
import torch
ModuleNotFoundError: No module named 'torch'


when I write conda list | findstr torch I see that torch is installed:


What is the problem?

I tried:

conda update conda -n root
conda install mkl=2018


but get:

Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.

Could Not Find C:\WINDOWS\TEMP\conda-23721-26470.tmp
Could Not Find C:\WINDOWS\TEMP\tmpry_dlvar.bat


and the same error occurrence

Try the below mentioned one, surely  it will work.

conda install -c pytorch pytorch
