Python Forum
ImportError:DLL Load Failed after importing scipy.sparse.linalg
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImportError:DLL Load Failed after importing scipy.sparse.linalg
#1
Hello,

I am attempting to create a build of python2.7 along side a build of python3.8 since I require both for a project that I need to complete. I have currently installed Python 2.7.11 and Python 3.8.5 and have them working well. However, I encountered many issues when trying to install NumPy and SciPy for Python 2.7. I was finally able to install NumPy 1.16.1 and SciPy 0.16.1; to make sure that they were functioning, I entered the Python 2 interpreter and imported each library. This seemed to work.

However, when I began using the library (OpenCavity) which required NumPy, SciPy, Python 2.7, I encountered the following when the library attempted to import scipy.sparse.linalg:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python27\lib\site-packages\scipy\sparse\linalg\__init__.py", line 109, in <module> from .isolve import * File "C:\Python27\lib\site-packages\scipy\sparse\linalg\isolve\__init__.py", line 6, in <module> from .iterative import * File "C:\Python27\lib\site-packages\scipy\sparse\linalg\isolve\iterative.py", line 7, in <module> from . import _iterative ImportError: DLL load failed: The specified module could not be found.

I attempted to uninstall and reinstall SciPy but the error persisted. Is there a way to fix this error?

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Failed attempts to load Microsoft Appstore Python DLLs piyushd 0 447 Oct-31-2023, 10:43 AM
Last Post: piyushd
  Scipy sparse setuptools issues Anldra12 11 5,471 Jun-19-2021, 04:01 PM
Last Post: Anldra12
  numpy.linalg.LinAlgError: SVD did not converge When making ARIMA forecast jnans12 1 3,442 Feb-15-2021, 10:07 PM
Last Post: nilamo
  DLL load failed flaviu2 5 4,115 Oct-01-2020, 02:05 PM
Last Post: snippsat
  ModuleNotFoundError: No module named 'scipy.optimize'; 'scipy' is not a package AaronKR 1 10,288 Jul-09-2020, 02:36 AM
Last Post: bowlofred
  problem with mapnik in anaconda python 2: from _mapnik import * ImportError: DLL load parsley 0 1,912 Dec-11-2019, 07:50 AM
Last Post: parsley
  python import sybpydb error: DLL load failed: The specified module could not be found andieDu 3 7,687 Apr-04-2018, 06:58 AM
Last Post: Larz60+
  Load spatialite in Python 3.6 on Win10 failed RTFirefly 1 5,401 Feb-19-2018, 09:59 PM
Last Post: RTFirefly
  mportError: DLL load failed: jarthda 8 8,102 May-19-2017, 09:59 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020