尝试在python服务器上集成Google Firestore API
... File "/home/daffolap-355/repos/subscriptions/appvendor/firebase_admin/firestore.py", line 28, in <module> raise ImportError('Failed to import the Cloud Firestore library for Python. Make sure ' ImportError: Failed to import the Cloud Firestore library for Python. Make sure to install the "google-cloud-firestore" module.
我在这里收到此错误:
from firebase_admin import credentials, auth, firestore
我安装了firebase-admin模块:
firebase-admin
pip install --upgrade -t libs firebase-admin
并运行应用
dev_appserver app.yaml
Google Cloud Firestore要求grpc。
grpc
pip install grpcio
但是,根据您的操作系统,还有其他步骤。查看 https://github.com/grpc/grpc/tree/master/src/python/grpcio