raphaelvallat/yasa

ImportError: Numba needs NumPy 1.22 or less

honeysleep opened this issue · 2 comments

!pip list
mne 1.1.0
numba 0.56.0
numpy 1.22.0

when

import yasa

yasa.plot_hypnogram(hypno)

I have python 3.8, numba 0.56.0 and numpy 1.22.0 and everything is working well. Are you sure that your numpy version is 1.22 and not 1.23? It seems like numba is only compatible with numpy up to 1.22: https://numba.readthedocs.io/en/stable/user/installing.html

Thanks
Raphael

I rebooted and it worked out!