ImportError: cannot import name NUMPY_MKL
If you look at the line which is causing the error, you'll see this:
from numpy._distributor_init import NUMPY_MKL # requires numpy+mkl
This line comment states the dependency as numpy+mkl
(numpy
with Intel Math Kernel Library). This means that you've installed the numpy
by pip
, but the scipy
was installed by precompiled archive, which expects numpy+mkl
.This problem can be easy solved by installation for numpy+mkl
from whl file from here.
Import Seaborn Error - Numpy_MKL (Python Script)
The following solution worked out:
Solution:
If you are using windows make sure you install numpy+mkl instead of just numpy.
If you have already installed scipy and numpy, uninstall then using "pip uninstall scipy" and "pip uninstall numpy"
Now download scipy from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy (appropriate version for your python and system)
and install using "pip install scipy‑1.1.0‑cp36‑cp36m‑win_amd64.whl" (Please install from the list according to your system config)
Your numpy and Scipy both should work now.
These binaries by Christoph Gohlke makes it very easy to install python packages on windows. But make sure you download all the dependent packages from there.
Reference: 4th answer of this question ImportError: cannot import name NUMPY_MKL
Related Topics
Numpy Version of "Exponential Weighted Moving Average", Equivalent to Pandas.Ewm().Mean()
Return List of Items in List Greater Than Some Value
Matplotlib Custom Marker/Symbol
Os.Path.Dirname(_File_) Returns Empty
What Is the Inverse Function of Zip in Python
How to Upsert Pandas Dataframe to Microsoft SQL Server Table
Why Isn't .Ico File Defined When Setting Window's Icon
Is There an Platform Independent Equivalent of Os.Startfile()
Weighted Standard Deviation in Numpy
In-Place Type Conversion of a Numpy Array
Django/Python Beginner: Error When Executing Python Manage.Py Syncdb - Psycopg2 Not Found
Brew Installation of Python 3.6.1: [Ssl: Certificate_Verify_Failed] Certificate Verify Failed
Pandas Read_CSV and Filter Columns with Usecols
How to Ignore One Single Specific Line with Pylint
What Are All the Dtypes That Pandas Recognizes
Networkx - Change Color/Width According to Edge Attributes - Inconsistent Result