<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:DLL load failed while importing _mklinit in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1501251#M34751</link>
    <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Jul 2023 09:05:58 GMT</pubDate>
    <dc:creator>ShanmukhS_Intel</dc:creator>
    <dc:date>2023-07-03T09:05:58Z</dc:date>
    <item>
      <title>DLL load failed while importing _mklinit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1500526#M34723</link>
      <description>&lt;P&gt;I'm reporting an issue with importing &lt;A title="mkl package" href="https://pypi.org/project/mkl/" target="_blank" rel="noopener"&gt;mkl&lt;/A&gt;.&amp;nbsp; In a conda environment, I installed the Intel packages below.&lt;/P&gt;&lt;P&gt;# packages in environment at C:\ProgramData\Anaconda3\envs\DS:&lt;BR /&gt;# Name Version Build Channel&lt;BR /&gt;bzip2 1.0.8 vc14hd4456ca_9 [vc14] intel&lt;BR /&gt;ca-certificates 2023.01.10 haa95532_0 intel&lt;BR /&gt;certifi 2022.12.7 py39haa95532_0 intel&lt;BR /&gt;daal4py 2023.1.1 py39_intel_48681 intel&lt;BR /&gt;dal 2023.1.1 intel_48681 intel&lt;BR /&gt;dpcpp-cpp-rt 2023.1.0 intel_46319 intel&lt;BR /&gt;dpcpp_cpp_rt 2023.1.0 intel_46319 intel&lt;BR /&gt;fortran_rt 2023.1.0 intel_46319 intel&lt;BR /&gt;icc_rt 2023.1.0 intel_46319 intel&lt;BR /&gt;impi_rt 2021.9.0 intel_43421 intel&lt;BR /&gt;intel-cmplr-lib-rt 2023.1.0 intel_46319 intel&lt;BR /&gt;intel-cmplr-lic-rt 2023.1.0 intel_46319 intel&lt;BR /&gt;intel-fortran-rt 2023.1.0 intel_46319 intel&lt;BR /&gt;intel-opencl-rt 2023.1.0 intel_46319 intel&lt;BR /&gt;intel-openmp 2023.1.0 intel_46319 intel&lt;BR /&gt;intelpython 2023.1.0 1 intel&lt;BR /&gt;joblib 1.2.0 pyh3f38642_0 intel&lt;BR /&gt;mkl 2023.1.0 intel_46356 intel&lt;BR /&gt;mkl-service 2.4.0 py39h9d02d91_15 intel&lt;BR /&gt;mkl_fft 1.3.5 py39h11997cf_11 intel&lt;BR /&gt;mkl_random 1.2.2 py39hb8cdf03_51 intel&lt;BR /&gt;mkl_umath 0.1.1 py39h7cd8e37_61 intel&lt;BR /&gt;numpy 1.23.5 py39hb1a71d1_7 intel&lt;BR /&gt;numpy-base 1.23.5 py39he7338a5_7 intel&lt;BR /&gt;openssl 1.1.1t h2bbff1b_0 intel&lt;BR /&gt;pip 23.0.1 py39haa95532_0 intel&lt;BR /&gt;python 3.9.16 h8c1d659_1 intel&lt;BR /&gt;scikit-learn 1.2.1 py39hd77b12b_0 intel&lt;BR /&gt;scikit-learn-intelex 2023.1.1 py39_intel_48681 intel&lt;BR /&gt;scipy 1.7.3 py39hfcc2dce_8 intel&lt;BR /&gt;setuptools 65.6.3 py39haa95532_0 intel&lt;BR /&gt;six 1.16.0 pyhd3eb1b0_1 intel&lt;BR /&gt;sqlite 3.41.1 h2bbff1b_0 intel&lt;BR /&gt;tbb 2021.9.0 vc14_intel_43574 [vc14] intel&lt;BR /&gt;tbb4py 2021.9.0 py39_intel_43574 [vc14] intel&lt;BR /&gt;threadpoolctl 2.2.0 pyh0d69192_0 intel&lt;BR /&gt;tk 8.6.12 h2bbff1b_0 intel&lt;BR /&gt;vc 14.2 h21ff451_1 intel&lt;BR /&gt;vs2015_runtime 14.27.29016 h5e58377_2 intel&lt;BR /&gt;wheel 0.38.4 py39haa95532_0 intel&lt;BR /&gt;wincertstore 0.2 py39haa95532_2 intel&lt;BR /&gt;xz 5.2.8 h8cc25b3_0 intel&lt;BR /&gt;zlib 1.2.13 h8cc25b3_0 intel&lt;/P&gt;&lt;P&gt;(mkl was installed as a dependency by another package.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In VS Code for Windows 11, I created a .py script that runs:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import mkl&lt;/LI-CODE&gt;&lt;P&gt;Why does its PowerShell terminal displays the error below?&lt;/P&gt;&lt;PRE&gt;PS C:\Users\roots&amp;gt; C:/ProgramData/Anaconda3/Scripts/activate&lt;BR /&gt;PS C:\Users\roots&amp;gt; conda activate DS&lt;BR /&gt;conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ conda activate DS&lt;BR /&gt;+ ~~~~~&lt;BR /&gt;+ CategoryInfo : ObjectNotFound: (conda:String) [], CommandNotFoundException&lt;BR /&gt;+ FullyQualifiedErrorId : CommandNotFoundException&lt;BR /&gt;&lt;BR /&gt;PS C:\Users\roots&amp;gt; &amp;amp; C:/ProgramData/Anaconda3/envs/DS/python.exe "c:/Users/roots/OneDrive/Desktop/Python and Pandas for Data Engineering/test.py"&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\Users\roots\OneDrive\Desktop\Python and Pandas for Data Engineering\test.py", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;import mkl&lt;BR /&gt;File "C:\ProgramData\Anaconda3\envs\DS\lib\site-packages\mkl\__init__.py", line 49, in &amp;lt;module&amp;gt;&lt;BR /&gt;from . import _mklinit&lt;BR /&gt;ImportError: DLL load failed while importing _mklinit: The specified module could not be found.&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2023 21:34:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1500526#M34723</guid>
      <dc:creator>rootsmusic</dc:creator>
      <dc:date>2023-06-29T21:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: DLL load failed while importing _mklinit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1500698#M34725</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'In VS Code for Windows 11, I created a .py script that runs: Why does its PowerShell terminal displays the error below?'&lt;/P&gt;
&lt;P&gt;import mkl&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;Could you please confirm if Intel python is installed on your system?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In some cases, using a different distribution of Python or a package that doesn't rely on MKL can cause the issue. You could try using Anaconda distribution, which includes the Intel MKL library by default. More details regarding the same were provided below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use the conda package manager in installing Intel Python and all other dependent packages. You could use the below command for the same.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; conda create -n test -c intel intelpython3_full -y&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could install intel mkl using conda package manager using the below command&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; conda install -c intel mkl&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have the Intel MKL library installed on your system, could you please confirm that it is properly installed and configured? If necessary, you might need to reinstall MKL or update it to a compatible version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have created a test environment and we could see mkl being imported without any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is the screenshot for your reference.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mkl import screenshot.jpg" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/43091i8CE6653807D810DC/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="mkl import screenshot.jpg" alt="mkl import screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 10:41:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1500698#M34725</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-06-30T10:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: DLL load failed while importing _mklinit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1500754#M34738</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/170714"&gt;@ShanmukhS_Intel&lt;/a&gt;, I created a new environment for intelpython3_full.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 15:23:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1500754#M34738</guid>
      <dc:creator>rootsmusic</dc:creator>
      <dc:date>2023-06-30T15:23:42Z</dc:date>
    </item>
    <item>
      <title>Re:DLL load failed while importing _mklinit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1501251#M34751</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jul 2023 09:05:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DLL-load-failed-while-importing-mklinit/m-p/1501251#M34751</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-07-03T09:05:58Z</dc:date>
    </item>
  </channel>
</rss>

