import pandas报错No module named 'numpy.core._multiarray_umath'

安装好了以下whl:
Package Version


et-xmlfile 1.1.0
numpy 1.25.1
openpyxl 3.1.2
pandas 2.0.3
pip 23.2
python-dateutil 2.8.2
pytz 2023.3
setuptools 65.5.0
six 1.16.0
tzdata 2023.3

import pandas ,报错如下:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\dell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pandas_init_.py", line 16, in
raise ImportError(
ImportError: Unable to import required dependencies:
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.12 from "C:\Users\dell\AppData\Local\Programs\Python\Python312\python.exe"
  • The NumPy version is: "1.25.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'

降python版本到3.11.4解决

你安装的 python 是不是 Python3.12 以上
NumPy是不是 1.25.1

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^