linkedin / linkedin/FastTreeSHAP

ERROR IN INSTALLING FastTreeSHAP

オープン
#25 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
566
フォーク
38
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi Team,

I am not able to install the FastTreeSHAP library in Kubeflow, facing below error -

 building 'fasttreeshap._cext' extension
  creating build/temp.linux-x86_64-3.9
  creating build/temp.linux-x86_64-3.9/fasttreeshap
  creating build/temp.linux-x86_64-3.9/fasttreeshap/cext
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -I/usr/local/lib/python3.9/dist-packages/numpy/core/include -c fasttreeshap/cext/_cext.cc -o build/temp.linux-x86_64-3.9/fasttreeshap/cext/_cext.o -fopenmp
  fasttreeshap/cext/_cext.cc:3:10: fatal error: Python.h: No such file or directory
      3 | #include <Python.h>
        |          ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
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
WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Kubeflow で Python 3.9 を使用して fasttreeshap/cext/_cext.cc をビルドしている際に失敗が発生します。pip のインストールを再現し、その環境で Python.h を gcc が利用できない理由を調査してください。パッケージがそこで正常にビルドおよびインストールできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。