在Linux上安装tensorflow-decision-forests的问题

huangapple go评论62阅读模式
英文:

Installation issues for tensorflow-decision-forests on Linux

问题

在Fedora 38上安装tensorflow-decision-forests时遇到以下错误:

默认使用用户安装,因为正常的site-packages不可写
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

尝试按照installation-build中的步骤进行,但在执行./test_bazel.sh时出现以下错误:

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==

尝试使用Docker解决,但在Docker中执行./tools/test_bazel.sh时,出现以下错误:

ERROR: Could not find a version that satisfies the requirement tensorflow== (from versions: ... 2.13.0rc0)
ERROR: No matching distribution found for tensorflow== tf-docker

有帮助吗?

英文:

I getting the following error trying to install tensorflow-decision-forests on Fedora 38 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 installation-build

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 I tried with docker since I have it installed:

./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 

Any help?

答案1

得分: 1

Update: TF-DF 1.3.0现在也在Pypi上提供Python 3.11版本。

TF-DF 1.3.0不支持Python 3.11(但我相信下一个版本将支持)。由于据我所知,Fedora 38使用Python 3.11,这很可能是您问题的最有可能的原因。解决问题的最简单方法是使用不同的Python版本--3.8至3.10都受支持。

自行编译TF-DF可能有点复杂。您最好的选择是启动Docker,然后使用以下参数运行test_bazel.sh。

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

您可以调整参数以使其正常工作,详细信息在test_bazel.sh的标题中。

全面披露:我是Tensorflow Decision Forests的作者之一。

英文:

Update: TF-DF 1.3.0 now also has a Python 3.11 version available on Pypi

TF-DF 1.3.0 does not support Python 3.11 (but I am confident it will do so with the next version). Since AFAICT Fedora 38 uses Python 3.11, this is the most likely cause of your issue. The easiest fix for your problem would be to use a different Python version -- 3.8 - 3.10 are supported.

Compiling TF-DF yourself can be a bit tricky. Your best bet would be indeed to start the docker and then run test_bazel.sh with the following arguments.

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

You can play with the arguments to make it work, details are in the header of test_bazel.sh.

Full Disclosure: I'm one of the authors of Tensorflow Decision Forests.

huangapple
  • 本文由 发表于 2023年5月13日 13:44:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76241269.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定