Closed charleswm closed 3 years ago
Hi @charleswm ,
Thanks for reporting this. The latest versions of SHAP now include pre-built wheels for Windows, so there shouldn't be a Microsoft Visual C++ requirement.
Can you try installing/upgrading SHAP by itself, and then installing interpret?
pip install -U shap
pip install interpret
Thanks! -InterpretML Team
pip install shap fails for the same reason. I didn't notice this on my primary machine because I already have the C++ libraries, but seem to be running into this issue on a machine that doesn't already have this.
Any suggestions?
Hi @charleswm -- Can you confirm that you included the "-U" (to upgrade) in the command above, so:
pip install -U shap
-InterpretML Team
Yes that's what I ran. Sorry for the ambiguity.
Hi @charleswm,
If your primary goal is to try the non-Shap features of the package, you can optionally avoid the Shap dependency by running:
pip install interpret-core[required,ebm,plotly,dash]
-InterpretML team
Thanks for the response. This worked as a temporary fix so I can use ebm, but in general I do use SHAP.
Any idea if there's a more permanent solution?
FWIW, I'm having the same issue. I was able to install shap==0.34.0 and have it work.
Hi @charleswm and @mcheedle ,
Looks like the Python 3.7 wheel wasn't included in the latest PyPi release of SHAP. Scott's tracking the issue here: https://github.com/slundberg/shap/issues/1093 , and it looks like there's an open PR to handle this for Python 3.7+ here: https://github.com/slundberg/shap/pull/1354. We'll leave this issue open until there's a fix pushed in SHAP for future reference. For now, a workaround is to pin to shap 0.34 (pip install shap==0.34
) as suggested by @mcheedle, or by having Visual Studio (in Windows) or gcc (in Mac OS/Linux) installed on your machines.
Thanks, -InterpretML Team
Another workaround may be to install shap from conda-forge before installing interpret from pip
Thanks @philip-khor, was able to install using conda
conda install -c conda-forge shap
An upstream fix in SHAP should have resolved this issue, as wheels for Windows are now included in SHAP 0.36.
-InterpretML team
I created a new conda environment with python 3.7, pandas and jupyter.
Then i activated the environment and ran
pip install interpret
per the install instructions.Unfortunately, it failed while building shap, seemingly due to not having visual studio build tools installed
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
Did I skip a step here?Are there any plans for packaging this as a conda package so that it can handle dependencies like this so that the user doesn't have to do additional installs and configuration beyond running "conda install interpret" or "pip install interpret"?
Also, do I need to install visual studio to use this library? or just C++14. It's not clear from the error message what's going on here and when I go to the build tools site it prompts me to install a ton of stuff.
Thanks!