加载Scipy时出现错误:OSError:[WinError 126] 找不到指定的模块。

5

我使用虚拟环境中的pip为python3安装了scipy。当我尝试导入scipy时,出现以下错误:

>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\chriz\PycharmProjects\untitled1\venv\lib\site-packages\scipy\__init__.py", line 104, in <module>
    from . import _distributor_init
  File "C:\Users\chriz\PycharmProjects\untitled1\venv\lib\site-packages\scipy\_distributor_init.py", line 61, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

我似乎缺少某种依赖项,但我不知道这个依赖项是什么

当我搜索它尝试打开的.dll文件时,它似乎已经存在了

1个回答

11

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接