我正在尝试使用 "!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.
我该如何解决这个问题?
答案 0 :(得分:1)
您是否已经安装了 tf-nightly
,如果没有,请使用 pip install tf-nightly
和 pip install grpcio
进行安装。错误本身说明它需要更新版本的 grpcio
(requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible
).Follow this link 才能获得安装 TensorFlow
的完整过程细节。
答案 1 :(得分:0)
你应该首先pip install grpcio==1.34.0,我认为最好把'~='当作'=='