Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError when importing certain modules from SciPY

I have used Scipy for some time. This is the first time I am using it for Signal processing! But when I import modules like

from scipy import signal
from scipy import special

I get the error:

ImportError: DLL load failed: The specified module could not be found.

I am using Python 2.7.3 with Scipy 0.12.0 on 32-Bit Windows.

What should I do ?

like image 325
Animesh Pandey Avatar asked Jul 05 '13 03:07

Animesh Pandey


2 Answers

I had an issue importing sklearn because of my Scipy installation. I fixed this by going to here and downloading the right version of numpy for my computer. Then I did the same for Scipy by going here and downloading the MKL version for my computer. Once I did that, everything worked!

To check the supported tags for wheel version for your system you can run the following command in the command prompt: pip debug --verbose. You can install the .whl files for numpy and scipy by doing: pip install {filename}.whl

like image 88
Seiont Avatar answered Sep 19 '22 18:09

Seiont


I installed numpy-MKL from here for Python 3.5.1, but it didn't solve the problem until I added the folder C:\Program Files\Python35\Lib\site-packages\numpy\core to system path.

like image 22
Ramin Halavati Avatar answered Sep 21 '22 18:09

Ramin Halavati