Which SHAP do you use?
Please check it.
print(shap.__version__)
Also, did you install SHAP via pip
or conda
? Where your python access when you run the script? I think, after such checks you will get the answer what is going on.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…