错误:找不到满足张量流要求的版本

Hou*_*mes 5 python raspberry-pi tensorflow

我正在使用树莓派模型 3B+ ,我做了一个 venv,然后尝试安装tensorflow,但我得到了这 2 个错误 ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)

ERROR: No matching distribution found for tensorflow

我设法安装其他库,但只有我无法安装张量流。

小智 10

我刚刚在最新的 Macbook Pro(Apple M1 Pro 芯片)上遇到了这个问题。解决办法似乎是pip install tensorflow-macos. 这给了我一个错误ERROR: Failed building wheel for h5py,我通过关注这篇文章解决了这个错误。


小智 1

您能否验证以下要求:

  1. 你的电脑是64位的,使用的python和操作系统应该是64位的。
  2. $ sudo pip3 install setuptools --upgrade
  3. TensorFlow v2.4 与 Python 3.6 - 3.8 兼容。有关更多信息,请查看经过测试的构建配置。

4. 验证以下内容: python --version、python -m pip --version 和 python -m pip install -vvv tensorflow [拥有所有最新版本,包括tensorflow稳定版本2.x]