linkedin / linkedin/FastTreeSHAP

ERROR IN INSTALLING FastTreeSHAP

Abierto
#25 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Python
Estrellas
566
Forks
38
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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
| ^~~~~~~~~~
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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

El fallo ocurre al compilar fasttreeshap/cext/_cext.cc con Python 3.9 en Kubeflow. Reproduce la instalación mediante pip e investiga por qué Python.h no está disponible para gcc en ese entorno; se considera terminado cuando el paquete se compile e instale correctamente allí.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
build-system
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.