Python Tensorflow-Intel For Linux 不存在

问题描述 投票:0回答:1

我对 Python 很陌生。我们有一个 Azure Python 函数。我们需要更新它使用的软件包。一些套餐是:

tensorflow==2.15.0
tensorflow-estimator==2.15.0
tensorflow-intel==2.15.0
tensorflow-io-gcs-filesystem==0.31.0

我在我的 Windows 计算机上测试了这些 Windows 版本的软件包。现在我需要下载 Linux 版本的软件包并将其推送到我们的 python 软件包源。

当我尝试使用以下命令下载软件包时

python -m pip download --trusted-host pypi.org --trusted-host files.pythonhosted.org --proxy="http://127.0.0.1:8888/" -r requirements.txt --prefer-binary --only-binary=:all: -d C:\Python\Scoring\mlp\LinuxPackages --platform manylinux_2_17_x86_64 --platform manylinux2010_x86_64 --python-version 3.11

我得到了除了张量流之外的所有内容。我收到以下错误:

INFO: pip is looking at multiple versions of tensorflow to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 0.28.0 Requires-Python >=3.7, <3.11
ERROR: Could not find a version that satisfies the requirement tensorflow-intel==2.15.0; platform_system == "Windows" (from tensorflow) (from versions: 0.0.1)
ERROR: No matching distribution found for tensorflow-intel==2.15.0; platform_system == "Windows"

当我在 pypi.org 上查看 Tensorflow-intel 时,我看到 Windows Wheel 文件,但没有可用于构建 Wheel 文件的源代码分发档案。

我已经从 pypi.org 下载了主要的tensorflow包,并且运行了我的Azure函数,并且在没有tensorflow-intel包的情况下似乎可以正常工作,但我担心我可能会遇到问题。我没有创建这个函数,我们的团队中也没有任何 Python 专家。

从目前我们的包源来看,它不包含tensorflow-intel包,并且该包没有在原始requirements.txt文件中列出。但我不知道较新的tensorflow包是否依赖于tensorflow-intel。好像确实如此。

是否可以以某种方式将 Windows 包转换为源分发文件集,以便我可以创建与 Linux 兼容的 whl 文件?或者,我还有什么其他选择?

python linux tensorflow python-packaging python-3.11
1个回答
0
投票

来自 TensorFlow 的安装页面

注意:从 TensorFlow 2.10 开始,Aarch64/ARM64 处理器的 Linux CPU 版本由第三方:AWS 构建、维护、测试和发布。在 ARM 机器上安装tensorflow包会安装AWS的tensorflow-cpu-aws包。它们按原样提供。 Tensorflow 将尽合理努力来维护此 pip 包的可用性和完整性。如果第三方未能发布 pip 包,可能会出现延迟。有关此次合作的更多信息,请参阅此博文。

也许

tensorflow-cpu-aws
就是你想要的。

pip 安装tensorflow-cpu-aws

© www.soinside.com 2019 - 2024. All rights reserved.