[PYTHON] The story that scipy suddenly stopped loading

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

The story that scipy suddenly stopped loading
The story that my pull request was incorporated into Scipy
The story that Python stopped working with VS Code (Windows 10)
The story that FastAPI may take supremacy
The story that XGBoost was finally installed
The story that fits in with pip installation
A story that reduces the effort of operation / maintenance
A story that struggled with the common set HTTP_PROXY = ~
The story that Kivy's Japanese input characters are displayed
The story that the return value of tape.gradient () was None
The story that Japanese output was confused with Django
A story that analyzed the delivery of Nico Nama.
A story that stopped my heart after upgrading OpenStack
The story that yapf did not work in vscode
The story of sys.path.append ()
One day the jupyter notebook suddenly stopped opening [memory error]
Follow the mystery of orthographic-pedant that suddenly appeared on GitHub !!
The story that the new drawing library "HiPlot" was pretty good
The story that `while queue` did not work in python
The story that the private key is set to 600 with chmod