Q&A
前提
ここに質問の内容を詳しく書いてください。
import numpyでエラーが発生します。
実現したいこと
import numpy
発生している問題・エラーメッセージ
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
- The Python version is: Python3.9 from "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\python.exe"
- The NumPy version is: "1.24.1"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
該当のソースコード
import numpy
試したこと
numpyの再インストール
補足情報(FW/ツールのバージョンなど)
VisualStudio2022です。
Windows10、Python3.9
回答1件
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。