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

Error importing numpy after pip install intel-numpy

Noyes__Chris
Beginner
2,130 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
2,130 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?

0 Kudos
Noyes__Chris
Beginner
2,130 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.

0 Kudos
DavidLiu
Employee
2,130 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.

0 Kudos
Reply