Importing the multiarray numpy extension module failed

1439 ワード

from matplotlib import pyplot as pyp
次に、ファイルを実行するときにエラーメッセージが表示されます.
....
....
ImportError: 
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Aoncondaのnumpyモジュールに問題が発生したため、AconcondaのPromptのコマンドラインに進んで実行する
(base) C:\Users\hfh>pip uninstall numpy
Uninstalling numpy-1.15.4:
  Would remove:
    e:\soft\anaconda\lib\site-packages
umpy-1.15.4.dist-info\* e:\soft\anaconda\lib\site-packages
umpy\* e:\soft\anaconda\scripts\f2py.py Proceed (y/n)? y Successfully uninstalled numpy-1.15.4

再実行
(base) C:\Users\hfh>pip install numpy
Collecting numpy
  Using cached https://files.pythonhosted.org/packages/00/0e/5a8c34adb97fc1cd6636d78050e575945e874c8516d501421d5a0f377a6c/numpy-1.15.4-cp37-none-win_amd64.whl
Installing collected packages: numpy
Successfully installed numpy-1.15.4