Pytorch isnt found by my code using import torch
I have installed torch using pip. And when I try to run 

import torch


I get an error saying

raceback (most recent call last):
  File "C:\Users\leoga\Documents\AI Image Classifier\Classifier.py", line 2, in &lt;module&gt;
    import torch
  File "C:\Python38\lib\site-packages\torch\__init__.py", line 81, in &lt;module&gt;
    ctypes.CDLL(dll)
  File "C:\Python38\lib\ctypes\__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Python38\lib\site-packages\torch\lib\caffe2_nvrtc.dll'. Try using the full path with constructor syntax.


I am using python 3.8

Have you had python 2.x installed on your computer? It is possible that you need to use 

pip3 install torch


if you use just pip instead of pip3 it could install the library in the wrong version of python. If you are on a mac then this is probably the case, as python 2 comes preinstalled on the machine.
