Community
cancel
Showing results for
Did you mean:
Beginner
539 Views

## Clean instalation of intel-numpy cannot import numpy

Hi guys, Windows 10 laptop, intel-numpy does not install correctly on a new python 3.6.5 environment. See below:

(t2) C:\tools\envs>virtualenv in
Using real prefix 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64'
New python executable in C:\tools\envs\in\Scripts\python.exe
Installing setuptools, pip, wheel...done.

(t2) C:\tools\envs>in\Scripts\activate

(in) C:\tools\envs>pip install intel-numpy
Collecting intel-numpy
Collecting mkl-fft (from intel-numpy)
Collecting mkl-random (from intel-numpy)
Collecting icc-rt (from intel-numpy)
Collecting mkl>=2018.0.0 (from intel-numpy)
Using cached https://files.pythonhosted.org/packages/56/39/537cb3e4e93f1ac5085dc3b3a43cfd99d0af9b29c44fcaa99490f5...
Collecting intel-openmp (from icc-rt->intel-numpy)
Using cached https://files.pythonhosted.org/packages/2f/24/2562ec7515e44dea49867fab2c75704c0014d5d3da1f4e9f3bcfac...
Installing collected packages: mkl-fft, mkl-random, intel-openmp, icc-rt, mkl, intel-numpy
Successfully installed icc-rt-2019.0 intel-numpy-1.14.3 intel-openmp-2019.0 mkl-2019.0 mkl-fft-1.0.2 mkl-random-1.0.1

(in) C:\tools\envs>python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
>>> import numpy
Traceback (most recent call last):
File "C:\tools\envs\in\lib\site-packages\numpy\core\__init__.py", line 16, in <module>
from . import multiarray
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\tools\envs\in\lib\site-packages\numpy\__init__.py", line 158, in <module>
File "C:\tools\envs\in\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
File "C:\tools\envs\in\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "C:\tools\envs\in\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "C:\tools\envs\in\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try git clean -xdf (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: DLL load failed: The specified module could not be found.

>>> exit()

(in) C:\tools\envs>

Tags (1)
7 Replies
Beginner
539 Views

Terry this is the same error I got. Lets try to do more advocating to fix this issue. I have opened two topics about this error. Could you please comment them so the there is more chance that the topic gets resolved. This is an important and growing issue obviously, but it could be a quick fix. We just need to bring the attention to the topic. Than you in advance. Marko.

Beginner
539 Views
Beginner
539 Views

I pay for my compilers, and mkl. I will raise a proper support ticket. It seems strange that a flagship Intel development does not work (for me) at all with plain python. So many things depend on numpy!

Contrary to what is often said, In windows this is pretty easy to have numpy+mkl thanks to the wheels at https://www.lfd.uci.edu/~gohlke/pythonlibs/ and I have installed these first on any environment I set up and so have routinely had numpy+mkl for many years. numpy+mkl on Linux has always seemed more challenging and less common. (I suppose that was one significant Linux based justification for anaconda).

I had hoped intel-numpy would provide a unified approach. Lets see what Intel says. It seems a shame they do not respond so much on this site.

Beginner
539 Views

Huh... The situation seems even more serious than I though, since you have a commercial relationship with them.

I am familiar with the web page that you have mentioned, but I would be much more comfortable with working with official solution.

Employee
539 Views

Hello Terry,

We are looking into this issue.

Sergey

Employee
539 Views
Hi Terry,

Can you please try setting up your venv using instructions described here?

Thanks,
Rohit
Employee
539 Views

Hello

I am seeing the exact same issue while importing Intel-Numpy. I am using:

OS :linux Redhat

Python: Python3.6.6 installed as venv

I tried to follow the setting mentioned above but I have three activate files in my bin : activate ,activate.csh and activate.fish

Can you guide me ?

Ketki Haridas

SDE at Intel Corporation