salimamoukou / acv00

ACV is a python library that provides explanations for any machine learning model or data. It gives local rule-based explanations for any model or data and different Shapley Values for tree-based models.
MIT License
102 stars 11 forks source link

Doesn't work with Windows #5

Open set92 opened 2 years ago

set92 commented 2 years ago

I don't know if skranger is required 100%, but there aren't wheels for it, so it looks it can't be installed https://github.com/crflynn/skranger/issues/53. I am uncertain if there is some other way to test it, for now, I'm going to try it with https://github.com/ml-tooling/ml-workspace but not sure how to use it on Windows.

faridbah commented 2 years ago

I don't know if skranger is required 100%, but there aren't wheels for it, so it looks it can't be installed crflynn/skranger#53. I am uncertain if there is some other way to test it, for now, I'm going to try it with https://github.com/ml-tooling/ml-workspace but not sure how to use it on Windows.

It seems there is now a wheel for skranger (https://github.com/crflynn/skranger/issues/53). But I couldn't install acv-exp package on a Windows machine. Any luck with ml-workspace?

salimamoukou commented 2 years ago

Sorry for the late reply. Could you share the errors? Python version?

faridbah commented 2 years ago

Sorry for the late reply. Could you share the errors? Python version?

Thanks for your reply. I am using python 3.9.12 and Conda package manager. Here is a brief background about the errors:

If I directly pip install the package I get: "ERROR: Could not build wheels for skranger, which is required to install pyproject.toml-based projects"

It seems the required version for skranger (0.7.0) does not support Windows but a newer version (0.8.0rc1) does (https://github.com/crflynn/skranger/issues/53). I installed the newer version and tried to locally install acv-exp package with a changed requirment.txt (I changed the requirement to skranger==0.8.0rc1) and then successfully ran pip install -r. Now, when I locally pip install acv-exp with the modified requirements file I get this error:

"error: subprocess-exited-with-error

× Building wheel for acv-exp (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output] running bdist_wheel running build running build_py running build_ext building 'cext_acv' extension 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/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for acv-exp Failed to build acv-exp ERROR: Could not build wheels for acv-exp, which is required to install pyproject.toml-based projects"

I have Microsoft Visual C++ 14.32.31332 installed on my machine though.