Incubator-mxnet: I failed to install the mxnet-mkl version on Windows 10

Created on 9 Mar 2019  ·  13Comments  ·  Source: apache/incubator-mxnet

OS :Windows 10 professional
I installed mxnet-mkl version using the following command:

_conda create -n mxnet_mkl_env python=3.6
conda activate mxnet_mkl_env
pip install mxnet-mkl_

When I finished the installation, I executed the following command in python environment:

_import mxnet as mx_

An error occurred:

Traceback (most recent call last):
File “”, line 1, in
File “C:UserssheepMiniconda3envsmxnet_mkllibsite-packagesmxnet_init_.py”, line 24, in
from .context import Context, current_context, cpu, gpu, cpu_pinned
File “C:UserssheepMiniconda3envsmxnet_mkllibsite-packagesmxnetcontext.py”, line 24, in
from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
File “C:UserssheepMiniconda3envsmxnet_mkllibsite-packagesmxnetbase.py”, line 213, in
_LIB = _load_lib()
File “C:UserssheepMiniconda3envsmxnet_mkllibsite-packagesmxnetbase.py”, line 204, in load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
File "C:UserssheepMiniconda3envsmxnet_mkllibctypes_init.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found.

What is the problem and how should I fix it?
Could someone tell me how to fix it in detail ?
Thanks

Installation MKLDNN Windows

Most helpful comment

As a quick update, this issue can be reproduced with build from source on windows, with mkl+mkldnn,
will keep on the root causing. @pengzhao-intel @stereomatchingkiss

All 13 comments

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Test

@juliusshufan could you help take a look?

@mxnet-label-bot add [Installation, MKLDNN, Windows]

Hi,
I also asked the same question in discuss.gluon.ai ,but it seems that no one know how to solve the problem in detail.

Sorry, we don't check the forum frequently :(
BTW, please wait a moment because we are building the windows system inside now.

Building the windows system inside? I'm sorry but I am curious about that. What is the purpose ?

To reproduce the problem on the Windows

To reproduce the problem on the Windows

Any chances to add a travis build for windows(if you have enough of resources) like #14370 suggest?
One with mkl + cuda
Another one with mkl

This way whenever you commit the codes written on x platform(mac osx, linux etc), you can ensure your new codes do not break anything on windows.
It would be better if you add travis build for every platforms you plan to support, like opencv.

As a quick update, this issue can be reproduced with build from source on windows, with mkl+mkldnn,
will keep on the root causing. @pengzhao-intel @stereomatchingkiss

This problem really make me ,,,,a little upset, at so far I still didn't know how to fix the problem in a simple or understandable way .

I think the best way is the mxnet should add support to conda instead of just supporting pip. Just like pytorch, there is no difference in windows and linux.

@wufengqian
Can you please try the below steps to make it works?

  1. Download and install the latest full MKL version following instructions on the intel website. https://software.intel.com/en-us/mkl
  2. Add the mkl dll path to Windows PATH, the local is similiar to: (X standing for the partition you installing the full MKL)
    : X:Program Files (x86)IntelSWToolscompilers_and_libraries_2019.3.203windowsredistintel64_winmkl

Thanks.

@wufengqian
Can you please try the below steps to make it works?

  1. Download and install the latest full MKL version following instructions on the intel website. https://software.intel.com/en-us/mkl
  2. Add the mkl dll path to Windows PATH, the local is similiar to: (X standing for the partition you installing the full MKL)
    : X:Program Files (x86)IntelSWToolscompilers_and_libraries_2019.3.203windowsredistintel64_winmkl

Thanks.

Thanks, but I'm sorry and I won't try this. Because my SSD's volume is small and the full MKL version is such a big guy,,,,,,,,,. And the most important thing is I think the mxnet should do the thing just like the pytorch does that just need one command that I can install all I need.

Updated the windows doc in below link which will resolve the issue.
https://mxnet.incubator.apache.org/versions/master/tutorials/mkldnn/MKLDNN_README.html#3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dushoufu picture dushoufu  ·  3Comments

yuconglin picture yuconglin  ·  3Comments

realbns2008 picture realbns2008  ·  3Comments

qiliux picture qiliux  ·  3Comments

seongkyun picture seongkyun  ·  3Comments