Tensorflow 依赖项:tensorflow 1.15.0 有要求 tensorboard<1.16.0,>=1.15.0 :解决方案是什么?

Tensorflow dependencies: tensorflow 1.15.0 has requirement tensorboard<1.16.0,>=1.15.0 : What's the solution?

我有这个依赖列表:

absl-py==0.7.0
bleach==1.5.0
click==6.7
cycler==0.10.0
decorator==4.2.1
futures==3.1.1
h5py==2.7.1
html5lib==0.9999999
imageio==2.2.0
Keras==2.1.5
Markdown==2.6.11
matplotlib==3.1.1
networkx==2.1
numpy==1.16.0
Pillow==5.0.0
pip-autoremove==0.9.0
protobuf==3.7
pyparsing==2.2.0
python-dateutil==2.6.1
pytz==2017.3
PyWavelets==0.5.2
PyYAML==3.12
scikit-image==0.13.1
scipy==1.1.0
six==1.12.0
tensorflow-gpu
tensorflow-tensorboard==1.5.1
tqdm==4.19.5
Werkzeug==0.15

我有这些错误:

ERROR: tensorflow 1.15.0 has requirement tensorboard<1.16.0,>=1.15.0, but you'll have tensorboard 2.0.0 which is incompatible.

ERROR: tensorflow 1.15.0 has requirement tensorflow-estimator==1.15.1, but you'll have tensorflow-estimator 2.0.1 which is incompatible.

ERROR: datascience 0.10.6 has requirement folium==0.2.1, but you'll have folium 0.8.3 which is incompatible.

ERROR: albumentations 0.1.12 has requirement imgaug<0.2.7,>=0.2.5, but you'll have imgaug 0.2.9 which is incompatible.

有什么解决办法?我应该使用外部工具来解决这个依赖问题吗?

卸载冲突的依赖项。对于 tensorflow 它将是:

pip uninstall tensorflow tensorflow-tensorboard tensorflow-estimator

(也许还有一些,不确定)。

其次,重新安装 tensorflow 通过发出(将固定版本更改为您想要的任何版本,也许是新的 2.0):

pip install tensorflow==1.15.0

对于其他依赖项也是如此,卸载必要的并使用您的错误显示的显式版本固定进行安装。

最后,至少在 Tensorflow 2.0 中安装 tensorflow(与 estimator 相同)时会下载适当的 tensorboard。如果没有,您可能必须明确安装它们,就像您的 tensorflow 版本一样。如有必要,请查阅已安装的软件包列表。