我已经SciPy
在 Windows Powershell 上使用 pip 安装了。我使用了命令py -m pip install scipy
。这行得通。然后我尝试将 scipy 导入 Python,但出现此错误
回溯(最近一次通话最后):
File "C:\Users\monzu\Documents\model of membrane-fiber interactions.py", line 2, in <module>
import scipy
File "C:\Users\monzu\AppData\Roaming\Python\Python39\site-packages\scipy\__init__.py", line 61, in <module>
from numpy import show_config as show_numpy_config
File "C:\Users\monzu\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 138, in <module>
from . import _distributor_init
File "C:\Users\monzu\AppData\Roaming\Python\Python39\site-packages\numpy\_distributor_init.py", line 26, in <module>
WinDLL(os.path.abspath(filename))
File "C:\Users\monzu\AppData\Local\Programs\Python\Python39-32\lib\ctypes\__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 不是有效的 Win32 应用程序
我该如何解决?