【问题标题】:Tensorflow dependencies: tensorflow 1.15.0 has requirement tensorboard<1.16.0,>=1.15.0 : What's the solution?Tensorflow 依赖项:tensorflow 1.15.0 有要求 tensorboard<1.16.0,>=1.15.0 :解决方案是什么?
【发布时间】:2020-02-21 03:50:20
【问题描述】:

我有这个依赖列表:

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

我有这些错误:

错误:tensorflow 1.15.0 要求 tensorboard=1.15.0,但您将拥有不兼容的 tensorboard 2.0.0。

错误:tensorflow 1.15.0 要求 tensorflow-estimator==1.15.1,但您将拥有不兼容的 tensorflow-estimator 2.0.1。

错误:数据科学 0.10.6 要求 folium==0.2.1,但您将拥有不兼容的 folium 0.8.3。

错误:albumentations 0.1.12 要求 imgaug=0.2.5,但您将拥有不兼容的 imgaug 0.2.9。

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

【问题讨论】:

    标签: python tensorflow dependencies dependency-management


    【解决方案1】:

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

    pip uninstall tensorflow tensorflow-tensorboard tensorflow-estimator
    

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

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

    pip install tensorflow==1.15.0
    

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-29
      • 1970-01-01
      • 2020-04-09
      • 2020-07-11
      • 1970-01-01
      • 1970-01-01
      • 2014-05-02
      • 2016-02-21
      相关资源
      最近更新 更多