【发布时间】:2022-01-26 19:17:19
【问题描述】:
我正在尝试按照those instructions 安装 Tensorflow 对象检测 API。一切都很顺利,直到我必须在模型/研究目录中运行 python -m pip install 。它开始收集和安装各种包,但是当它到达 tf-models-official 的安装时,它会产生以下错误:
ERROR: Cannot install object-detection because these package versions have conflicting dependencies.
The conflict is caused by:
tf-models-official 2.7.0 depends on tensorflow-addons
tf-models-official 2.6.1 depends on tensorflow-addons
tf-models-official 2.6.0 depends on tensorflow-addons
tf-models-official 2.5.1 depends on tensorflow-addons
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
我在网上做了一些挖掘,但在 tensorflow 或其他网站的 Github 存储库中没有找到任何东西。我在 Linux 64 位操作系统上使用 Tensorflow 2.7.0 和 Python 3.9.2。我也尝试过使用 Python 3.7.12,但同样的错误仍然存在,而使用 pip install 手动安装 tensorflow-addons 表明没有找到匹配的发行版。
【问题讨论】:
标签: python linux tensorflow