google / yggdrasil-decision-forests

A library to train, evaluate, interpret, and productionize decision forest models such as Random Forest and Gradient Boosted Decision Trees.
https://ydf.readthedocs.io/
Apache License 2.0
498 stars 53 forks source link

Cannot install in pip3.11 #44

Closed andrea-cassioli-maersk closed 1 year ago

andrea-cassioli-maersk commented 1 year ago

Hi I am trying to install tensorflow_decision_forests on my Mac for python3.11 and got the following error

➜  ML-COLGEN-Hackathon-June2023 git:(main) ✗ pip3.11 install tensorflow_decision_forests --upgrade
ERROR: Could not find a version that satisfies the requirement tensorflow_decision_forests (from versions: none)
ERROR: No matching distribution found for tensorflow_decision_forests

I use

➜  yggdrasil-decision-forests git:(main) ✗ pip3.11 --version
pip 23.1.2 from /opt/homebrew/lib/python3.11/site-packages/pip (python 3.11)

any clue? It works nicely in pip3.10

andrea-cassioli-maersk commented 1 year ago

btw in https://pypi.org/project/tensorflow-decision-forests/ the instruction on the top says

pip install tensorflow-decision-forests

but your docs says

pip install tensorflow_decision_forests
rstz commented 1 year ago

Hi Andrea, we simply haven't released TF-DF for Python 3.11 because the release script wasn't configured for it :) Python 3.11 will be available with the next TF-DF version.

I'll try to compile a TF-DF package for 3.11 now and see if it works quickly - if everything just works, I'll upload it to PyPi today, but no promises :)

Thank you for reporting the inconsistency in the installation instructions - it looks like Pypi resolves both to TF-DF so both are fine.

andrea-cassioli-maersk commented 1 year ago

thanks @rstz for the quick response!

rstz commented 1 year ago

Update: TF-DF is now available for Python 3.11 on PyPi