首页 > 解决方案 > 如何找到旧 TensorFlow 版本的要求?

问题描述

因为现在,我正在使用Wayback Machine,这很荒谬。一定有更好的方法。

对于给定的 TensorFlow 版本,例如 2.1,我如何/在哪里可以找到相关的软件要求?

更具体地说,需要哪些 NVIDIA GPU 驱动程序、Cuda Toolkit 和 cuDNN。

标签: tensorflowrequirements

解决方案


一种方法是,您可以设置虚拟环境并安装 tensorflow 2.1

$ pip install tensorflow==2.1.3

然后只需在命令行中调用库就会显示它的依赖关系

$ tensorflow

检查此答案以获取详细信息。


如果您不想安装库,

  1. 您可以访问TensorFlow 版本
  2. 选择特定的包
  3. 在 REQUIRED_PACKAGES 下的 setup.py 中旧版本的源代码(必须下载其 zip)中,您可以找到该列表。

此处的示例(检查下面显示的路径以查找文件)- https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/setup.py

REQUIRED_PACKAGES = [
    'absl-py ~= 0.10',
    'astunparse ~= 1.6.3',
    'flatbuffers ~= 1.12.0',
    'google_pasta ~= 0.2',
    'h5py ~= 3.1.0',
    'keras_preprocessing ~= 1.1.2',
    'numpy ~= 1.19.2',
    'opt_einsum ~= 3.3.0',
    'protobuf >= 3.9.2',
    'six ~= 1.15.0',
    'termcolor ~= 1.1.0',
    'typing_extensions ~= 3.7.4',
    'wheel ~= 0.35',
    'wrapt ~= 1.12.1',
    # These packages need to be pinned exactly as newer versions are
    # incompatible with the rest of the ecosystem
    'gast == 0.4.0',
    # TensorFlow ecosystem packages that TF exposes API for
    # These need to be in sync with the existing TF version
    # They are updated during the release process
    # When updating these, please also update the nightly versions below
    'tensorboard ~= 2.4',
    'tensorflow_estimator ~= 2.3.0',
]

推荐阅读