Python 3.12.5 (tags/v3.12.5:ff3bc82, Aug 6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] on win32 Type “help”, “copyright”, “credits” or “license” for more information.
import torch
Traceback (most recent call last):
File “”, line 1, in
File “C:UsersMukulAppDataLocalPackagesPythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0LocalCachelocal-packagesPython312site-packagestorch_init_.py”, line 141, in
raise err
OSError: [WinError 126] The specified module could not be found. Error loading “C:UsersMukulAppDataLocalPackagesPythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0LocalCachelocal-packagesPython312site-packagestorchlibshm.dll” or one of its dependencies.
i tried intalling pytorch and CUDA normally according to pytorch website, it wouldn’t work in case when i’m training a model e.g. YoloV8, but when i try installing a version early, torch isn’t even getting recognised:
21I335 – MUKUL P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.