|

楼主 |
发表于 2024-7-26 10:35:49
|
显示全部楼层
F:\pythonProject1\venv\Scripts\python.exe F:/pythonProject1/111.py
Traceback (most recent call last):
File "F:\pythonProject1\venv\lib\site-packages\numpy\_core\__init__.py", line 23, in <module>
from . import multiarray
File "F:\pythonProject1\venv\lib\site-packages\numpy\_core\multiarray.py", line 10, in <module>
from . import overrides
File "F:\pythonProject1\venv\lib\site-packages\numpy\_core\overrides.py", line 8, in <module>
from numpy._core._multiarray_umath import (
ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的程序。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\pythonProject1\venv\lib\site-packages\numpy\__init__.py", line 143, in <module>
from numpy.__config__ import show as show_config
File "F:\pythonProject1\venv\lib\site-packages\numpy\__config__.py", line 4, in <module>
from numpy._core._multiarray_umath import (
File "F:\pythonProject1\venv\lib\site-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.9 from "F:\pythonProject1\venv\Scripts\python.exe"
* The NumPy version is: "2.0.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 "F:\pythonProject1\111.py", line 2, in <module>
import matplotlib.pyplot as plt
File "F:\pythonProject1\venv\lib\site-packages\matplotlib\__init__.py", line 187, in <module>
from . import _api, _version, cbook, _docstring, rcsetup
File "F:\pythonProject1\venv\lib\site-packages\matplotlib\cbook.py", line 24, in <module>
import numpy as np
File "F:\pythonProject1\venv\lib\site-packages\numpy\__init__.py", line 148, in <module>
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.
进程已结束,退出代码1
怎么这么多错误呢 |
|