Help! Recently installed conda and now pytorch is unstable

Hello! I’ve recently installed conda and got pytorch, but I’ve been getting a bunch of errors, such as:
AssertionError: Torch not compiled with CUDA enabled
cnn = cnn.cuda()
File “c:\apps\Miniconda3\lib\site-packages\torch\nn\modules\module.py”, line 260, in cuda
return self._apply(lambda t: t.cuda(device))
File “c:\apps\Miniconda3\lib\site-packages\torch\nn\modules\module.py”, line 187, in _apply
module._apply(fn)
File “c:\apps\Miniconda3\lib\site-packages\torch\nn\modules\module.py”, line 187, in _apply
module._apply(fn)
File “c:\apps\Miniconda3\lib\site-packages\torch\nn\modules\module.py”, line 193, in _apply
param.data = fn(param.data)
File “c:\apps\Miniconda3\lib\site-packages\torch\nn\modules\module.py”, line 260, in
return self.apply(lambda t: t.cuda(device))
File "c:\apps\Miniconda3\lib\site-packages\torch\cuda_init
.py", line 161, in _lazy_init
check_driver()
File "c:\apps\Miniconda3\lib\site-packages\torch\cuda_init
.py", line 75, in _check_driver
raise AssertionError(“Torch not compiled with CUDA enabled”)

I’m not sure how to fix this, i’ve been at it for 3 hours now.

Hi,

This happens because you try to use cuda. By doing cnn.cuda() but you installed a cpu-only version of pytorch.
You should either remove the calls to .cuda() or install a cuda enabled version of pytorch.