Skip to main content

ESP32 CSI - Resolving the Error "cannot import name '_lazywhere' from 'scipy._lib._util'"

icysamon
Author
icysamon
I really love making things by hand and turning my ideas into reality.
Table of Contents

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 scipy

Install version 1.15.3 of scipy.

pip install scipy==1.15.3