J.7C126806YH 2023-10-26 23:21 采纳率: 0%
浏览 17

python在linux系统中安装numpy出错


root@LiDebian:~/JYH/yolov5-5.0# /usr/bin/python3 /root/JYH/yolov5-5.0/train.py
Traceback (most recent call last):
  File "/usr/lib/python3.11/dist-packages/numpy/core/__init__.py", line 23, in <module>
    from.import multiarray
  File "/usr/lib/python3.11/dist-packages/numpy/core/multiarray.py", line 10, in <module>
    from.import overrides
  File "/usr/lib/python3.11/dist-packages/numpy/core/overrides.py", line 6, in <module>
    from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/JYH/yolov5-5.0/train.py", line 11, in <module>
    import numpy as np
  File "/usr/lib/python3.11/dist-packages/numpy/__init__.py", line 145, in <module>
    from.import core
  File "/usr/lib/python3.11/dist-packages/numpy/core/__init__.py", line 49, in <module>
    raise ImportError(msg)
ImportError: 

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.11 from "/usr/bin/python3"
  * The NumPy version is: "1.24.4"

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'

不知道怎么解决

  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2023-10-27 08:59
    关注

    【相关推荐】




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

报告相同问题?

问题事件

  • 创建了问题 10月26日