pythonpipgoogle-colaboratorytflite

Can't update packages via pip in google colab


I'm trying to run a python deep learning model with google colab, and I'm still after installing tflite-model-maker and tflite-support with this codeĀ 

!pip install -q tflite-model-maker
!pip install -q tflite-support

this error:

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.
xarray 2022.12.0 requires packaging>=21.3, but you have packaging 20.9 which is incompatible.

I have updated the packaging with !pip install --upgrade packaging in the previous step but it didn't help.


Solution

  • Try this !pip install -q xarray==0.18.2 packaging==21.3 tflite-model-maker tflite-support