I was addicted to it for about a week, so I made a note.
The environment is
I don't know what triggered it, but when I tried to use scipy.ndimage
or scipy.misc
, I got the following error.
>>> import scipy.misc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\scipy\misc\__init__.py", line 49, in <modu
le>
from scipy.special import comb, factorial, factorial2, factorialk
File "C:\Python27\lib\site-packages\scipy\special\__init__.py", line 601, in <
module>
from ._ufuncs import *
ImportError: DLL load failed:The specified module cannot be found.
I have no idea what the cause is. You can't reinstall scipy. When I was at a loss, I found the following question.
According to the answer to this question, update numpy from here. After updating, scipy surely works. I'm not sure what the cause was, but it seems that there was a problem on the numpy side.
Recommended Posts