Error On Setting Environment Variables In Google Cloud Using The Sdk
I am trying to set up Environment Variables for my Django app on Google Cloud. I entered the following on the SDK: gcloud functions deploy env_vars --runtime python37 --set-env-var
Solution 1:
You have pip
in your requirements.txt
, possibly because you did something like pip freeze --all > requirements.txt
. The Python 3.7 runtime for Cloud Functions has a bug where specifying pip
as a dependency for the function causes this issue.
You should remove pip
from your requirements.txt
file, but also make sure that you're only specifying the requirements that are actually dependencies for your function.
Post a Comment for "Error On Setting Environment Variables In Google Cloud Using The Sdk"