Intel® Distribution for Python*
Support and discussions for achieving faster Python* applications and core computational packages.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
389 Discussions

Error importing numpy after pip install intel-numpy

Noyes__Chris
Beginner
1,107 Views

On Windows 10, I installed 64-bit Python 3.6.8 from python.org, then installed numpy with "pip install -U intel-numpy".

Then when importing numpy I get the below error. Please advise on the fix.

 

Thanks!

 

>> python -c "import numpy"
Traceback (most recent call last):
  File "C:\Users\chnoyes\AppData\Local\Programs\Python\Python36\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 "<string>", line 1, in <module>
  File "C:\Users\chnoyes\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\__init__.py", line 158, in <module>
    from . import add_newdocs
  File "C:\Users\chnoyes\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Users\chnoyes\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
    from .type_check import *
  File "C:\Users\chnoyes\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "C:\Users\chnoyes\AppData\Local\Programs\Python\Python36\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.

0 Kudos
3 Replies
DavidLiu
Employee
1,107 Views

This is a common problem if you install versions with intermixed pip and numpy dependencies in an environment.  Can you post your conda list and conda info output for us to look at?

Noyes__Chris
Beginner
1,107 Views

I'm not using Anaconda. This is a clean install of python from the python.org binaries, and intel-numpy is the first and only package installed.

DavidLiu
Employee
1,107 Views

Pip has not collected one of the dependencies right then.  You'll need to remove the packages from /site-packages/numpy/ and try to reinstall NumPy.  Multiarray is a common failure in NumPy if the installation fails to install correctly.

Reply