tensorflow/decision-forests

Installation with Fedora 38

ShaneGervais opened this issue · 1 comments

I getting the following error with pip install tensorflow-decision-forests:

Defaulting to user installation because normal site-packages is not writeable 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

So I tried following: https://github.com/tensorflow/decision-forests/blob/main/documentation/installation.md

Doing:

git clone https://github.com/tensorflow/decision-forests.git cd decision-forests/tools

then,

./test_bazel.sh

I get the error:

ERROR: Could not find a version that satisfies the requirement tensorflow== (from versions: 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.13.0rc0) ERROR: No matching distribution found for tensorflow==

SO then with docker:

./tools/start_compile_docker.sh

inside docker:

./tools/test_bazel.sh

I get the following error:

ERROR: Could not find a version that satisfies the requirement tensorflow== (from versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.13.0rc0) ERROR: No matching distribution found for tensorflow== tf-docker

I need help on this thank you. My system is an x86_64 Linux 6.2.14-300 with Fedora 38.

Thanks to the following stackoverflow I was able to install it on my machine.

I did:
sudo dnf install python3.8

Then inside decision-forests, I ran using Docker:

RUN_TESTS=0 PY_VERSION=3.8 TF_VERSION=2.12.0 ./tools/test_bazel.sh

Then was able to:

pip install tensorflow_decision_forests

and use with the python3.8 kernel.

Thanks again to @rstz on stackoverflow