错误:tensorboard 2.0.2的需求setuptools> = 41.0.0,但您将拥有不兼容的setuptools 40.6.2


12

在安装中出现此错误。这会引起问题吗?

错误:tensorboard 2.0.2的需求setuptools> = 41.0.0,但是您有不兼容的setuptools 40.6.2。

Answers:


5

我有完全一样的错误:

ERROR: tensorboard 2.0.2 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.2 which is incompatible.

然后,我执行了以下三个步骤,并且成功了:

1)pip uninstall tensorflow-tensorboard 2)pip uninstall tensorflow-gpu 3)pip install --upgrade tensorflow-gpu

然后我以某种方式找到了这个结果。似乎它已修复。

Installing collected packages: tensorflow-gpu, setuptools
Found existing installation: setuptools 40.6.2
Uninstalling setuptools-40.6.2:
Successfully uninstalled setuptools-40.6.2

成功安装setuptools-42.0.2 tensorflow-gpu-2.0.0


我必须执行第4步:4)pip install --upgrade tensorflow-tensorboard
James Hirschorn


5

使用命令卸载TensorFlow pip uninstall tensorflow

使用命令重新安装 pip install --upgrade tensorflow


0

修改张量板的METADATA文件。让它不要抱怨setuptools的版本。

此解决方案可在MacOS上使用。编辑档案

/图书馆/Python/3.7/site-packages/tensorboard-2.0.2.dist-info/METADATA

将“ Requires-Dist:setuptools(> = 41.0.0)”更改为“ Requires-Dist:setuptools(> = 40.0.0)”

然后它将不报告错误。


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.