简体   繁体   中英

Error when loading scipy: OSError: [WinError 126] The specified module could not be found

I have installed scipy for python3 using pip inside of a virtualenv. When I try to import scipy, I get the following error:

>>> 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

I seem to be missing some sort of dependency, but I don't know what the dependency is

When I look for the.dll that it is trying to open, it appears to be there

just faced the same error. The solution is downgrade scipy :

pip install scipy==1.4.1

I found it here:

https://github.com/pytorch/ignite/issues/1153

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM