Hi
I am trying to deploy a flask application to GKE. I am using a Dockerfile for the same. For this particular application, i need to use the google-cloud-bigquery-storage library. This library automatically installs the latest protobuf package. However, on running the application, due to an exception I need a lower version of the protobuf package. I do this by including the following command in my Dockerfile :
RUN pip3 install --target=/app/dependencies 'protobuf<=3.20.1' --force-reinstall --upgrade
On doing this, the package google.cloud gets overwritten and I lose access to google-cloud-bigquery-storage. How can I install google-cloud-bigquery-storage with the latest version and protobuf with a lower version on the same pod ?
Hello shashanksahay,
Have you tried running the pip install with the ==[version number]
Sample: pip install --upgrade google-cloud-bigquery==3.7