Python 3.8.12无法导入Scipy 1.7.3



我无法在python中导入Scipy包。我使用的几乎是最新的Anaconda安装,安装了很多软件包,运行良好,除了Scipy。当我尝试导入Scipy时,会发生以下情况:

(base) C:WINDOWSsystem32>python
Python 3.8.12 | packaged by conda-forge | (default, Oct 12 2021, 21:22:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:Anaconda3libsite-packagesscipy__init__.py", line 136, in <module>
from . import _distributor_init
File "D:Anaconda3libsite-packagesscipy_distributor_init.py", line 59, in <module>
WinDLL(os.path.abspath(filename))
File "D:Anaconda3libctypes__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'D:Anaconda3libsite-packagesscipy.libslibbanded5x.CBCBXIAYFUWOYCSBXUA2BT6W76FYX4C7.gfortran-win_amd64.dll' (or one of its dependencies). Try using the full path with constructor syntax.

仅供参考,我使用:

  • Python 3.8.12
  • 编号1.20.3
  • Scipy 1.7.3

我没有尝试正确删除Scipy并重新安装,因为删除它也会删除我正在使用的许多其他软件包。然而,我确实手动地从";站点包";目录,然后用pip重新安装scipy。这也于事无补。

提前感谢您的帮助。

scipy降级为1.6.2可以解决此问题
要降级,您需要执行conda install scipy=1.6.2

最新更新