I want to connect my Raspberry Pi 4B to Firebase Firestore. I'm using VS Code and SSH to write code on the RPi. I did all the necessary imports but I got this error:
Failed to import the Cloud Firestore library for Python. Make sure to install the "google-cloud-firestore" module.
The error realtes to this line of code:
from firebase_admin import firestore
When I use PyCharm on my local computer and I do the same imports, everything goes well.
This is my code:
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
# Use a service account
cred = credentials.Certificate('***.json')
firebase_admin.initialize_app(cred)