When I run my script that uses torch I get the following error:
<code> File "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packagestorchvisiontransformsfunctional.py", line 168, in to_tensor
img = torch.from_numpy(np.array(pic, mode_to_nptype.get(pic.mode, np.uint8), copy=True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Numpy is not available
</code>
<code> File "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packagestorchvisiontransformsfunctional.py", line 168, in to_tensor
img = torch.from_numpy(np.array(pic, mode_to_nptype.get(pic.mode, np.uint8), copy=True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Numpy is not available
</code>
File "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packagestorchvisiontransformsfunctional.py", line 168, in to_tensor
img = torch.from_numpy(np.array(pic, mode_to_nptype.get(pic.mode, np.uint8), copy=True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Numpy is not available
I just freshly installed numpy and torch today using pip. What could be the issue?