【问题标题】:How to run the notebook on google colab (throws an error)如何在 google colab 上运行 notebook(抛出错误)
【发布时间】:2021-08-18 06:48:04
【问题描述】:

我对编程知之甚少,所以请尽可能简单地回答。 google colab 上的其中一个笔记本引发错误。我只想运行这个演示。我附上截图、链接和错误代码。

Link to the notebook

ERROR: tensorflow 2.5.0 has requirement h5py~=3.1.0, but you'll have h5py 2.10.0 which is incompatible.

【问题讨论】:

    标签: python tensorflow google-colaboratory


    【解决方案1】:

    版本有冲突。

    要修复错误,请先在一个单元格中运行以下两个命令,然后再运行笔记本的其他单元格:

    1. 安装兼容的 TensorFlow 版本:
         !pip install tensorflow==2.2.0
    
    1. 安装兼容的 h5py 版本
         !pip install h5py==2.7.0
    

    【讨论】:

      猜你喜欢
      • 2019-05-04
      • 2021-07-13
      • 2021-08-29
      • 2021-10-08
      • 2020-03-03
      • 1970-01-01
      • 1970-01-01
      • 2021-09-17
      • 2021-10-12
      相关资源
      最近更新 更多