ImportError: Failed to import the Cloud Firestore library for Python
Google Cloud Firestore requires grpc
.
pip install grpcio
However, there are additional steps depending on your OS. Check out https://github.com/grpc/grpc/tree/master/src/python/grpcio
To solve the "google-cloud-firestore" module error do this:
- pip install google-cloud-core
- pip install google-cloud-firestore
And then import like this:
- import os
- import firebase_admin
- from firebase_admin import credentials
- from google.cloud import firestore
- from firebase_admin import firestore