安装 TensorFlow 插件

Install TensorFlow addons

我有一个包含以下详细信息的 venv:

我尝试使用以下方法安装 tensorflow-addons

pip install -q --no-deps tensorflow-addons~=0.6

但后来我不断收到以下 错误:

Could not find a version that satisfies the requirement tensorflow-addons~=0.6 (from versions: ) No matching distribution found for tensorflow-addons~=0.6

You are using pip version 18.0, however version 19.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

我也试过其他版本的tensorflow-addons,e。 g., 0.4.0, 0.5.0, ..., 但没有成功。

问题似乎与在 Windows 平台上安装早期版本的 tensorflow-addons 有关。到 更新 这条评论时,这个问题应该会完全消失。

事实上,开发人员说它已经解决了,如下所示:

FYI stable release for windows is out. pip install tensorflow-addons

https://github.com/tensorflow/addons/issues/173#issuecomment-573106184

我遇到过这个问题两次,每次我都不得不用不同的解决方案来解决这个问题。

1.解法:

2。解法:

  • 转到https://pypi.org/project/tensorflow-addons/#history

  • 点击合适的版本

  • 点击左侧菜单中的“下载文件”

  • 单击与您的系统匹配的 .whl 文件 requirements/specifications

  • 转到下载 .whl 文件的目录,然后 运行 正在关注

    pip 安装tensorflow_addons-name.whl