haasad/PyPardiso

PyPardiso can't locate shared library 'mkl_rt.dll' on Windows with MKL version 2021.2.0

haasad opened this issue · 2 comments

On windows pypardiso can't be imported with the newest version of MKL 2021.2.0

FileNotFoundError: Could not find module 'mkl_rt.dll' (or one of its dependencies). Try using the full path with constructor syntax.

There must have been a change in how mkl is packaged between these versions, which throws off pypardiso. This used to work without problems until now. ctypes just found the library in the path, see the relevant code here.

mkl 2020.2 from the defaults channel still works.

Based on brightway-lca/brightway2-calc#36 (comment), it seems like you could test for both filenames.