Skip to content

🐛 Bug: ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. #9

@Ikaros-521

Description

@Ikaros-521

操作系统

Windows

Python 版本

3.10.12

洛曦AI 版本号

v0.5.4

描述问题

2025-02-21 10:59:42.043 | ERROR    | utils.task_manager:start_task:356 - Traceback (most recent call last):
  File "numpy\_core\__init__.py", line 23, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "numpy\_core\multiarray.py", line 10, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "numpy\_core\overrides.py", line 7, in <module>
ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "numpy\__init__.py", line 127, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "numpy\__config__.py", line 4, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "numpy\_core\__init__.py", line 49, in <module>
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.10 from "D:\luoxiAI\LUOXIAI\洛曦AI系统-V0.5.5.exe"
  * The NumPy version is: "2.2.1"

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

Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "utils\task_manager.py", line 275, in start_task
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "utils\task\filter.py", line 7, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "langid\__init__.py", line 1, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "langid\langid.py", line 57, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "numpy\__init__.py", line 132, in <module>
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.

复现步骤

直接运行开播报错

期望的结果

No response

截图或日志

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions