Skip to content
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

ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (shap) #912

Open
cccchou opened this issue Aug 23, 2024 · 3 comments

Comments

@cccchou
Copy link

cccchou commented Aug 23, 2024

when i pip install econml it shows:error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
ERROR: Failed building wheel for shap
Failed to build shap
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (shap)
i have installed Microsoft Visual C++ 2015-2022 Redistributable 14.0 how can i fix it

@BIT-Xu
Copy link

BIT-Xu commented Aug 26, 2024

+1

@kbattocchi
Copy link
Collaborator

It looks like you need the Visual C++ compiler, not the redistributable. See https://wiki.python.org/moin/WindowsCompilers#Compilers_Installation_and_configuration for step-by-step instructions that should work.

However, I'm a bit curious about your setup, because in most cases there should already be a precompiled wheel for shap that should automatically install rather than needing to be compiled from source. Could you include the output from running pip debug?

@cccchou
Copy link
Author

cccchou commented Aug 26, 2024

yes you're right ihave fix it by installing the c++14.0

It looks like you need the Visual C++ compiler, not the redistributable. See https://wiki.python.org/moin/WindowsCompilers#Compilers_Installation_and_configuration for step-by-step instructions that should work.

However, I'm a bit curious about your setup, because in most cases there should already be a precompiled wheel for shap that should automatically install rather than needing to be compiled from source. Could you include the output from running pip debug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants