I am writing a Google Cloud Function using the Python Runtime and I need to include some dependencies which are not available with pip
. As described in the docs here, it should be possible to package local dependencies, however, in my case, I would like to use all the packages of a local Anaconda environment and upload them with the function. Is there a way to do so?
Or alternatively, is there a way to specify Anaconda packages in the requirements.txt
file instead of using pip
?
No, it's not possible, Cloud Functions only supports installing from PyPI via pip
.
You may be interested in using Cloud Run instead, which will allow you to define your own runtime, and thus install Anaconda packages via conda
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With