if somebody still looking for the answer in 2025:
if your python version 3.9.7 and you are using ta-lib, use this version : 1.26.2