AI Tools from Intel
Find answers to your toolkit installation, configuration, and get-started questions.
110 Discussions

intel extension for pytorch: OSError: [WinError 126] The specified module could not be found.

isale
Novice
1,031 Views
Hello, I am trying to install Intel Extension for PyTorch in my conda environment with Python 3.10. I have an Intel ARC A750. I followed the official guide exactly: https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=gpu&version=v2.1.30%2bxpu&os=windows&package=pip . However, it is not detected and returns this error:
0 Kudos
1 Solution
Ying_H_Intel
Employee
882 Views

Hi


Thank you for raising the quesiton here,


The error message shows some related dll are not found in the environment. Could you please check if you already install all related SW inlcude oneAPI Base tools and MSVS 2022?


for example, the github issue: ipex-xpu "OSError: [WinError 126] The specified module could not be found." on windows i7-1185G7 · Issue #429 · intel/intel-extension-for-pytorch (github.com)

here is one install guide for your reference:


  

1. conda create -n ipex_test python=3.10

2.conda activate ipex_test


3. conda install pkg-config libuv

 

4. python -m pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/

 

5. pip install dpcpp-cpp-rt==2024.1 mkl-dpcpp==2024.1

 

6. python -m pip install setuptools==69.5.1

python -m pip install numpy==1.26.4

 

7. Verify Env is correct : python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__); [print(f'[{i}]: {torch.xpu.get_device_properties(i)}') for i in range(torch.xpu.device_count())];


Please feel free to let me know if any result.


View solution in original post

0 Kudos
2 Replies
Ying_H_Intel
Employee
883 Views

Hi


Thank you for raising the quesiton here,


The error message shows some related dll are not found in the environment. Could you please check if you already install all related SW inlcude oneAPI Base tools and MSVS 2022?


for example, the github issue: ipex-xpu "OSError: [WinError 126] The specified module could not be found." on windows i7-1185G7 · Issue #429 · intel/intel-extension-for-pytorch (github.com)

here is one install guide for your reference:


  

1. conda create -n ipex_test python=3.10

2.conda activate ipex_test


3. conda install pkg-config libuv

 

4. python -m pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/

 

5. pip install dpcpp-cpp-rt==2024.1 mkl-dpcpp==2024.1

 

6. python -m pip install setuptools==69.5.1

python -m pip install numpy==1.26.4

 

7. Verify Env is correct : python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__); [print(f'[{i}]: {torch.xpu.get_device_properties(i)}') for i in range(torch.xpu.device_count())];


Please feel free to let me know if any result.


0 Kudos
isale
Novice
790 Views

Good morning, thank you very much for the response. I apologize for the delay in replying. It works perfectly now, again, thank you so much!

0 Kudos
Reply