Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.
424 Discussions

Clean instalation of intel-numpy cannot import numpy

Terry
Beginner
2,229 Views
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
  Using cached https://files.pythonhosted.org/packages/7c/1e/b3d04d8dfdc8c7abcdaadc4e8d34df7aecb78d34637934211077d733c87b/intel_numpy-1.14.3-cp36-cp36m-win_amd64.whl
Collecting mkl-fft (from intel-numpy)
  Using cached https://files.pythonhosted.org/packages/7e/a3/bc90b31611885b24ab648e5c6186c0bad4190c7797db9bda6771c822c64e/mkl_fft-1.0.2-cp36-cp36m-win_amd64.whl
Collecting mkl-random (from intel-numpy)
  Using cached https://files.pythonhosted.org/packages/81/01/1948d50b2c1289ffacf58764de351aea2fd1a1add4dd6ab9eada37c8d57d/mkl_random-1.0.1-cp36-cp36m-win_amd64.whl
Collecting icc-rt (from intel-numpy)
  Using cached https://files.pythonhosted.org/packages/b2/1c/5fb2762192a2cf12fab65d1a52bcca8dc427ad2cf3099c2b0a641b1b2199/icc_rt-2019.0-py2.py3-none-win_amd64.whl
Collecting mkl>=2018.0.0 (from intel-numpy)
  Using cached https://files.pythonhosted.org/packages/56/39/537cb3e4e93f1ac5085dc3b3a43cfd99d0af9b29c44fcaa99490f526b611/mkl-2019.0-py2.py3-none-win_amd64.whl
Collecting intel-openmp (from icc-rt->intel-numpy)
  Using cached https://files.pythonhosted.org/packages/2f/24/2562ec7515e44dea49867fab2c75704c0014d5d3da1f4e9f3bcfac717e5f/intel_openmp-2019.0-py2.py3-none-win_amd64.whl
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
Type "help", "copyright", "credits" or "license" for more information.
>>> 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>
    from . import add_newdocs
  File "C:\tools\envs\in\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  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>

 

0 Kudos
7 Replies
Djordjic__Marko
Beginner
2,229 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.

0 Kudos
Djordjic__Marko
Beginner
2,229 Views
0 Kudos
Terry
Beginner
2,229 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.

0 Kudos
Djordjic__Marko
Beginner
2,229 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.

Thank you for your reply. Lets hope for the best.

0 Kudos
Sergey_M_Intel2
Employee
2,229 Views

Hello Terry,

We are looking into this issue.

Sergey

0 Kudos
Rohit_J_Intel
Employee
2,229 Views
Hi Terry,
 
Can you please try setting up your venv using instructions described here?
 
Thanks,
Rohit
0 Kudos
Ketki_H_Intel
Employee
2,229 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 

0 Kudos
Reply