New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install fails due to Microsoft Visual C++ 14.0 dependency #132
Comments
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?
Thanks! |
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:
-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:
-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: shap/shap#1093 , and it looks like there's an open PR to handle this for Python 3.7+ here: shap/shap#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 ( Thanks, |
Another workaround may be to install shap from conda-forge before installing interpret from pip |
Thanks @philip-khor, was able to install using conda |
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!
The text was updated successfully, but these errors were encountered: