【问题标题】:Problems when trying to install tensorflow尝试安装 tensorflow 时出现的问题
【发布时间】:2021-04-10 04:47:06
【问题描述】:

我正在尝试使用"!pip install tensorflow"(在 python 3.8 上)安装 tensorflow,但我得到的是以下错误消息:

tf-nightly 2.5.0.dev20210102 requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible.
tf-nightly 2.5.0.dev20210102 requires h5py~=3.1.0, but you'll have h5py 2.10.0 which is incompatible.
tf-nightly-gpu 2.5.0.dev20210102 requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible.
tf-nightly-gpu 2.5.0.dev20210102 requires h5py~=3.1.0, but you'll have h5py 2.10.0 which is incompatible.

我该如何解决这个问题?

【问题讨论】:

    标签: python-3.x tensorflow gpu


    【解决方案1】:

    您是否已经安装了tf-nightly,如果没有,请使用pip install tf-nightlya 然后使用pip install grpcio。错误本身表明它需要更新版本的grpcio (requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible).Follow this link 才能获得安装TensorFlow 的过程的完整详细信息。

    【讨论】:

      【解决方案2】:

      首先你应该 pip install grpcio==1.34.0,我认为最好把 '~=' 当作 '==' 处理

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-09-24
        • 2016-09-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-01-19
        • 2017-01-11
        相关资源
        最近更新 更多