The error is due to the deprecation (in NumPy
version 1.20
) and removal (in NumPy
version 1.24
NumPy Doc 1.24) of the np.complex alias in NumPy
.
To resolve you can try updating the datasets
library:
pip install --upgrade datasets
and/ or downgrading NumPy
to before the removal:
E.g.
pip install numpy==1.23.5