Problems when trying to install tensorflow

Viewed 4228

I am trying to install tensorflow by using "!pip install tensorflow"(on python 3.8) but what I get is the following error message:

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.

How can I solve this problem?

2 Answers

Have you already installed tf-nightly if not then do it using pip install tf-nightlya nd then pip install grpcio. The error itself clarifies that it needs the updated version of grpcio (requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible).Follow this link to get complete details of the process to install TensorFlow.

you should pip install grpcio==1.34.0 at first, i think it is better treat '~=' as '=='

Related