但是
Traceback (most recent call last):
File “D:Program FilesPython313Libsite-packagesnumpy_core__init__.py”, line 23, in
from . import multiarray
File “D:Program FilesPython313Libsite-packagesnumpy_coremultiarray.py”, line 10, in
from . import overrides
File “D:Program FilesPython313Libsite-packagesnumpy_coreoverrides.py”, line 7, in
from numpy._core._multiarray_umath import (
add_docstring, _get_implementing_args, _ArrayFunctionDispatcher)
ModuleNotFoundError: No module named ‘numpy._core._multiarray_umath’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “D:Program FilesPython313Libsite-packagesnumpy__init__.py”, line 127, in
from numpy.__config__ import show_config
File “D:Program FilesPython313Libsite-packagesnumpy__config__.py”, line 4, in
from numpy._core._multiarray_umath import (
……
)
File “D:Program FilesPython313Libsite-packagesnumpy_core__init__.py”, line 49, in
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:
* The Python version is: Python3.13 from “D:Program FilesPython313python3.13t.exe”
* The NumPy version is: “2.2.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’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “D:Program FilesPythonsc2405.py”, line 1, in
from tqsdk import TqApi, TqAuth
File “D:Program FilesPython313Libsite-packagestqsdk__init__.py”, line 6, in
from tqsdk.api import TqApi
File “D:Program FilesPython313Libsite-packagestqsdkapi.py”, line 35, in
import numpy as np
File “D:Program FilesPython313Libsite-packagesnumpy__init__.py”, line 132, in
raise ImportError(msg) from e
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.
但我去NUMPY的官网看了 2.2是支持到从3.10-3.12的
但是
Traceback (most recent call last):
File “D:Program FilesPython313Libsite-packagesnumpy_core__init__.py”, line 23, in
from . import multiarray
File “D:Program FilesPython313Libsite-packagesnumpy_coremultiarray.py”, line 10, in
from . import overrides
File “D:Program FilesPython313Libsite-packagesnumpy_coreoverrides.py”, line 7, in
from numpy._core._multiarray_umath import (
add_docstring, _get_implementing_args, _ArrayFunctionDispatcher)
ModuleNotFoundError: No module named ‘numpy._core._multiarray_umath’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “D:Program FilesPython313Libsite-packagesnumpy__init__.py”, line 127, in
from numpy.__config__ import show_config
File “D:Program FilesPython313Libsite-packagesnumpy__config__.py”, line 4, in
from numpy._core._multiarray_umath import (
……
)
File “D:Program FilesPython313Libsite-packagesnumpy_core__init__.py”, line 49, in
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.13 from “D:Program FilesPython313python3.13t.exe”
* The NumPy version is: “2.2.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’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “D:Program FilesPythonsc2405.py”, line 1, in
from tqsdk import TqApi, TqAuth
File “D:Program FilesPython313Libsite-packagestqsdk__init__.py”, line 6, in
from tqsdk.api import TqApi
File “D:Program FilesPython313Libsite-packagestqsdkapi.py”, line 35, in
import numpy as np
File “D:Program FilesPython313Libsite-packagesnumpy__init__.py”, line 132, in
raise ImportError(msg) from e
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.