Python3.10脚本错误

Python3.10脚本错误

Ubuntu 20.04,Python3.10。我执行小脚本并收到错误:

STDERR message(s) from external script: 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.10/dist-packages/revoscalepy/__init__.py", line 121, in <module>
    from .RxSerializable import RxMissingValues
  File "/usr/lib/python3.10/dist-packages/revoscalepy/RxSerializable.py", line 10, in <module>
    from pandas import DataFrame
  File "/usr/lib/python3.10/dist-packages/pandas/__init__.py", line 16, in <module>
    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.10 from "/usr/bin/python3.10"
STDERR message(s) from external script: 
  * The NumPy version is: "1.24.3"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

我该如何修复它?原始错误是:没有名为“numpy.core._multiarray_umath”的模块

相关内容