{"id":1069,"hash":"fe06084401ce8424425df26b07779a746d4e725e0f0450fb85277940b098377e","pattern":"ImportError: cannot import name NUMPY_MKL","full_message":"I am trying to run the following simple code \n\nimport scipy\nscipy.test()\n\nBut I am getting the following error\n\nTraceback (most recent call last):\n  File \"<stdin>\", line 1, in <module>\n  File \"C:\\Python27\\lib\\site-packages\\spyderlib\\widgets\\externalshell\\sitecustomize.py\", line 586, in runfile\n    execfile(filename, namespace)\n  File \"C:/Users/Mustafa/Documents/My Python Code/SpectralGraphAnalysis/main.py\", line 8, in <module>\n    import scipy\n  File \"C:\\Python27\\lib\\site-packages\\scipy\\__init__.py\", line 61, in <module>\n    from numpy._distributor_init import NUMPY_MKL  # requires numpy+mkl\nImportError: cannot import name NUMPY_MKL\n\nI am using python 2.7 under windows 10.\n\nI have installed scipy but that does not seem to solve the problem\n\nAny help is appreciated.","ecosystem":"pypi","package_name":"windows","package_version":null,"solution":"If you look at the line which is causing the error, you'll see this:\n\nfrom numpy._distributor_init import NUMPY_MKL  # requires numpy+mkl\n\nThis 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.\n\nThis problem can be easy solved by installation for numpy+mkl from whl file from here.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/37267399/importerror-cannot-import-name-numpy-mkl","votes":93,"created_at":"2026-04-19T04:52:16.867450+00:00","updated_at":"2026-04-19T04:52:16.867450+00:00"}