tensorflow, tensorflow-quantum, grpcio dependency conflicts - tensorflow

I installed tensorflow-quantum and got the following error:
tensorflow-quantum 0.5.0 requires grpcio==1.30.0, but you have grpcio 1.32.0 which is incompatible.
So, I installed grpcio 1.30.0, but then got the following error:
tensorflow 2.4.1 requires grpcio~=1.32.0, but you have grpcio 1.30.0 which is incompatible.
It seems these dependency conflicts are cyclic. What should I do?

Related

How to downgrade tensorflow dependency libraries version

I am seeing following error while trying to install pip3 install -r requirements.txt, which downgrade my tf version from 2.10 to 2.7, and dependencies. I assume I can pip3 uninstall tensorflow-serving-api and the rests manually one by one, then rerun the installation. Not sure if this will potentially cause issues, wonder if there this a better automatic way ?
WARNING: Ignoring invalid distribution -olorlog (/usr/local/lib/python3.7/site-packages)
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow-serving-api 2.9.1 requires tensorflow<3,>=2.9.1, but you have tensorflow 2.7.1 which is incompatible.
tensorflow-metadata 1.10.0 requires absl-py<2.0.0,>=0.9, but you have absl-py 0.8.1 which is incompatible.
tensorflow-metadata 1.10.0 requires protobuf<4,>=3.13, but you have protobuf 3.10.0 which is incompatible.
tensorflow-datasets 4.6.0 requires protobuf>=3.12.2, but you have protobuf 3.10.0 which is incompatible.
googleapis-common-protos 1.56.0 requires protobuf>=3.12.0, but you have protobuf 3.10.0 which is incompatible.
google-cloud-storage 2.2.1 requires google-auth<3.0dev,>=1.25.0, but you have google-auth 1.13.1 which is incompatible.
google-api-core 2.7.1 requires google-auth<3.0dev,>=1.25.0, but you have google-auth 1.13.1 which is incompatible.
google-api-core 2.7.1 requires protobuf>=3.12.0, but you have protobuf 3.10.0 which is incompatible.

Issues in setting up the environment for TensorFlow Federated on Colab

I am new to Federated Learning, and I am trying to get started with TensorFlow Federated. While working on the tutorial "Federated Learning for Image Classification" on Colab, I tried to install TensorFlow Federated, but was met with these errors:
ERROR: tensorflow 2.5.0 requires tensorboard~=2.5, which is not installed.
ERROR: tensorflow 2.5.0 has requirement grpcio~=1.34.0, but you'll have grpcio 1.37.1 which is incompatible.
ERROR: tensorflow 2.5.0 has requirement keras-nightly~=2.5.0.dev, but you'll have keras-nightly 2.6.0.dev2021062500 which is incompatible.
ERROR: spacy 2.2.4 has requirement tqdm<5.0.0,>=4.38.0, but you'll have tqdm 4.28.1 which is incompatible.
ERROR: pymc3 3.11.2 has requirement cachetools>=4.2.1, but you'll have cachetools 3.1.1 which is incompatible.
ERROR: fbprophet 0.7.1 has requirement tqdm>=4.36.1, but you'll have tqdm 4.28.1 which is incompatible.
ERROR: datascience 0.10.6 has requirement folium==0.2.1, but you'll have folium 0.8.3 which is incompatible.
ERROR: tensorflow-privacy 0.6.1 has requirement attrs>=21.2.0, but you'll have attrs 19.3.0 which is incompatible.
After installing the versions of the libraries mentioned here, I found that there still exist some internal conflicts with the installed libraries. Has anyone else faced this issue? Would be great to get some pointers on this!
You may try the following commands to reset the environment:
!pip uninstall tensorflow
!pip uninstall tf-nightly
!pip uninstall tensorflow-federated
!pip install tensorflow
!pip install tensorflow-federated
!pip install tensorflow-federated-nightly

Error output in Google Colab tutorial when installing tfx

I'm running the following Google Colab, but when I run the following command, I get the below error:
!pip install -U tfx
--
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
multiprocess 0.70.11.1 requires dill>=0.3.3, but you have dill 0.3.1.1 which is incompatible.
jupyter-console 5.2.0 requires prompt-toolkit<2.0.0,>=1.0.0, but you have prompt-toolkit 3.0.18 which is incompatible.
google-colab 1.0.0 requires ipython~=5.5.0, but you have ipython 7.24.0 which is incompatible.
google-colab 1.0.0 requires requests~=2.23.0, but you have requests 2.25.1 which is incompatible.
datascience 0.10.6 requires folium==0.2.1, but you have folium 0.8.3 which is incompatible.
I did face similar problem with !pip install fiftyone but when I did repeat the syntax the problem gone.

downgrading tensorflow to v=2.1.0

I'm trying to use keras-tcn:
https://github.com/philipperemy/keras-tcn
But it seems that there is some conflict.
Installing it is downgrading keras from 2.4.3 to 2.3.1. But keras 2.3.1 seems to need tensorflow 2.1.0.
Yet by trying to install tensorflow:
pip install tensorflow == 2.1.0, I do have this error message:
ERROR: Could not find a version that satisfies the requirement tensorflow==2.1.0 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3)
ERROR: No matching distribution found for tensorflow==2.1.0
Does anyone have some solutions for installing it ?
Here are some infos that might be useful
pip : 20.2.4
python : 3.8.5
Downgrade your python to 3.7 and install tensorflow 2.1

ERROR: tensorflow 1.13.0rc2 has requirement tensorboard<1.13.0,>=1.12.0, but you'll have tensorboard 1.14.0 which is incompatible

I was trying to install tensorflow gpu on Windows 10, but I encountered following error messages:
ERROR: tensorflow 1.13.0rc2 has requirement tensorboard<1.13.0,>=1.12.0, but you'll have tensorboard 1.14.0 which is incompatible.
ERROR: tensorflow 1.13.0rc2 has requirement tensorflow-estimator<1.14.0rc0,>=1.13.0rc0, but you'll have tensorflow-estimator 1.14.0 which is incompatible.
Installing collected packages: google-pasta, wrapt, tensorflow-estimator, tensorflow-gpu
Found existing installation: wrapt 1.10.11
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
What is the problem and how can I fix it?