numpy is already installed with Anaconda but I get an ImportError (DLL load failed: The specified module could not be found) numpy is already installed with Anaconda but I get an ImportError (DLL load failed: The specified module could not be found) python-3.x python-3.x

numpy is already installed with Anaconda but I get an ImportError (DLL load failed: The specified module could not be found)


I have actually figured out the solution. I had initially edited my System Environment Variable ‘PATH’ by adding the path to the Scripts folder in my Python executable directory. Turns out, this was NOT enough...

I had to add more paths to it, and that magically did the trick.

See below the paths I added for the System Environment Variable PATH:

C:\Users\<myusername>\AppData\Local\Continuum\Anaconda3\Scripts\C:\Users\<myusername>\AppData\Local\Continuum\Anaconda3\Library\C:\Users\<myusername>\AppData\Local\Continuum\Anaconda3\Library\bin\C:\Users\<myusername>\AppData\Local\Continuum\Anaconda3\Library\mingw-w64\bin\

Now, I am not sure exactly which one path among these 4 my System was really looking for in particular. However, adding this combination sure did work for me 😊


For PyCharm users wanting an easy fix, this issue is fixed in PyCharm 2019.2.


Edit your System Environment Variable "PATH’ (refer steps here) by adding below given path.

Note: Follow this step if you already have numpy installed.

If using anaconda:C:\Users\<username>\AppData\Local\Continuum\Anaconda<version>\Library\bin\If using independent python interpreter:C:\Users\<username>\AppData\Roaming\Python\Python<version>\Library\bin