pmagistry / TALA540A

1 stars 0 forks source link

Problème d'installation de Boostsa #15

Open Aliwasan opened 7 months ago

Aliwasan commented 7 months ago

Je n'arrive pas à installer Boostsa sur mon système (Mac OS) car sklearn est deprecated et il est appelé dans le requirements.txt, apparement cela bloque la build wheel ? :

Collecting sklearn (from boostsa->-r requirements.txt (line 3))
 Using cached sklearn-0.0.post12.tar.gz (2.6 kB)
 Installing build dependencies ... done
 Getting requirements to build wheel ... error
 error: subprocess-exited-with-error

 × Getting requirements to build wheel did not run successfully.
 │ exit code: 1
 ╰─> [15 lines of output]
     The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
     rather than 'sklearn' for pip commands.

Préconise :

Here is how to fix this error in the main use cases:
      - use 'pip install scikit-learn' rather than 'pip install sklearn'
      - replace 'sklearn' by 'scikit-learn' in your pip requirements files
        (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
      - if the 'sklearn' package is used by one of your dependencies,
        it would be great if you take some time to track which package uses
        'sklearn' instead of 'scikit-learn' and report it to their issue tracker
      - as a last resort, set the environment variable
        SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error

Je ne vois pas comment modifier le requirements.txt line 3 pour mettre 'scikit-learn' i/o 'sklearn', c'est un fichier du module Boostsa. Autrement je ne sais pas non plus comment/où implémenter la variable d'environnement : SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True

pmagistry commented 7 months ago

essayez tout d'abord en ajoutant l'option --no-cache-dir à la commande pip. Autrement vous pouvez faire ce qui est proposé avec la variable d'environnement simplement en tapant: SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True pip install boostsa

Aliwasan commented 7 months ago

merci ça marche avec la variable d’environnement :

SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True pip install boostsa