linkedin / FastTreeSHAP

Fast SHAP value computation for interpreting tree-based models
BSD 2-Clause "Simplified" License
500 stars 30 forks source link

Can not install FastTreeSHAP on linux #10

Open LongUEH opened 1 year ago

LongUEH commented 1 year ago

Hi team, I have both windows and linux laptop. I was able to install FastTreeSHAP package on window but not on linux. this is the error message that I got on linux: ERROR: Could not build wheels for fasttreeshap, whichh is required tot install pyproject.toml-based projects

jlyang1990 commented 1 year ago

Hi, could you provide the detailed error message? My suggestion is to first search this error message on Google, and see if there are any relevant links helpful to resolve this issue (e.g., stackoverflow.com).

tanish36 commented 1 year ago

@jlyang1990 Continuing on this using python 3.10 , on google colab and this error is coming

` Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting fasttreeshap==0.1.2 Downloading fasttreeshap-0.1.2.tar.gz (286 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 286.5/286.5 kB 17.3 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting numba Using cached numba-0.56.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.5 MB) Collecting pandas Using cached pandas-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB) Collecting shap Using cached shap-0.41.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (572 kB) Collecting tqdm>4.25.0 Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB) Collecting slicer==0.0.7 Using cached slicer-0.0.7-py3-none-any.whl (14 kB) Collecting packaging>20.9 Using cached packaging-22.0-py3-none-any.whl (42 kB) Collecting cloudpickle Using cached cloudpickle-2.2.0-py3-none-any.whl (25 kB) Collecting psutil Using cached psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (280 kB) Collecting scipy Using cached scipy-1.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.7 MB) Collecting scikit-learn Using cached scikit_learn-1.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB) Collecting numpy<1.22 Using cached numpy-1.21.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.9 MB) Collecting llvmlite<0.40,>=0.39.0dev0 Using cached llvmlite-0.39.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.6 MB) Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from numba->fasttreeshap==0.1.2) (65.6.3) Collecting pytz>=2020.1 Using cached pytz-2022.6-py2.py3-none-any.whl (498 kB) Collecting python-dateutil>=2.8.1 Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting joblib>=1.1.1 Using cached joblib-1.2.0-py3-none-any.whl (297 kB) Collecting threadpoolctl>=2.0.0 Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB) Collecting six>=1.5 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Building wheels for collected packages: fasttreeshap error: subprocess-exited-with-error

× Building wheel for fasttreeshap (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output.

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

the error is same for all version