Skip to content

OSError: [WinError 126] The specified module could not be found. Error loading "...\aoti_custom_ops.dll" or one of its dependencies. #788

Open
@samabogbog

Description

@samabogbog

Describe the issue

Traceback (most recent call last):
File "C:.pytemp\ipex\app.py", line 1, in
import torch
File "C:.pytemp\ipex.env\lib\site-packages\torch_init_.py", line 262, in
load_dll_libraries()
File "C:.pytemp\ipex.env\lib\site-packages\torch_init
.py", line 258, in _load_dll_libraries
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:.pytemp\ipex.env\lib\site-packages\torch\lib\aoti_custom_ops.dll" or one of its dependencies.

===========================
Code :
import torch
import intel_extension_for_pytorch as ipex

model = torch.nn.Linear(10, 10)
model = ipex.optimize(model)

input_data = torch.randn(1, 10)
output = model(input_data)
print(output)

Activity

huiyan2021

huiyan2021 commented on Feb 20, 2025

@huiyan2021

Hi @samabogbog , as we described in the installation guide, on Windows, libuv needs to be installed, could you try in conda environment? Thanks!

Image

self-assigned this
on Feb 20, 2025
opolette

opolette commented on Mar 3, 2025

@opolette

Same issue here. Libuv installed. Error loading "[...]aoti_custom_ops.dll" or one of its dependencies.

kangxiatao

kangxiatao commented on Mar 5, 2025

@kangxiatao

I have encountered the same problem and I am looking forward to its resolution.😲

Intel(R) Core(TM) Ultra 7 255H

huiyan2021

huiyan2021 commented on Mar 18, 2025

@huiyan2021

@kangxiatao Could you try the latest version for Intel(R) Core(TM) Ultra 7 255H in a clean conda environment?

# For Intel® Core™ Ultra Series 2 Mobile Processors (Arrow Lake-H), use the commands below:
python -m pip install torch==2.6.0.post0+xpu torchvision==0.21.0.post0+xpu torchaudio==2.6.0.post0+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/arl/us/
python -m pip install intel-extension-for-pytorch==2.6.10+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/arl/us/
kangxiatao

kangxiatao commented on Mar 21, 2025

@kangxiatao

Thank you, it can now be used normally @huiyan2021

NoteMate-EX-CEO

NoteMate-EX-CEO commented on Mar 31, 2025

@NoteMate-EX-CEO

can someone help me also please

NoteMate-EX-CEO

NoteMate-EX-CEO commented on Mar 31, 2025

@NoteMate-EX-CEO

i have a ultra 7 155H, i did all i could a video explaining how to do it would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    OSError: [WinError 126] The specified module could not be found. Error loading "...\aoti_custom_ops.dll" or one of its dependencies. · Issue #788 · intel/intel-extension-for-pytorch