Issue 31090: import error for numpy (original) (raw)
When i tried to import numpy for any program in VS 2017, it returns with Import Error.
Traceback (most recent call last): File "C:\Program Files\Python36\lib\site-packages\numpy\core_init_.py", line 16, in from . import multiarray ImportError: DLL load failed: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Sriram Sudharsan\documents\visual studio 2017\Projects\TestApp1\TestApp1\TestApp1.py", line 1, in
import numpy as np
File "C:\Program Files\Python36\lib\site-packages\numpy_init.py", line 142, in
from . import add_newdocs
File "C:\Program Files\Python36\lib\site-packages\numpy\add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "C:\Program Files\Python36\lib\site-packages\numpy\lib_init.py", line 8, in
from .type_check import *
File "C:\Program Files\Python36\lib\site-packages\numpy\lib\type_check.py", line 11, in
import numpy.core.numeric as nx
File "C:\Program Files\Python36\lib\site-packages\numpy\core_init.py", line 26, in
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 procedure could not be found.
Press any key to continue . . .
Hi Sriram,
NumPy is a third party package, not maintained by the Python core developers; you likely need to report this on the NumPy bug tracker (though it's probably worthwhile asking on the NumPy user mailing lists first).
Closing here, since this almost certainly isn't a core Python issue.