Error #
ImportError: cannot import name '_lazywhere' from 'scipy._lib._util'Solution #
This is caused by the fact that scipy 1.16.0, released on June 23, 2025, is not supported.
Installing version 1.15.3 should resolve the issue.
Uninstall the current version of scipy.
pip uninstall scipyInstall version 1.15.3 of scipy.
pip install scipy==1.15.3