一尘不染

ImportError:无法为Python导入Cloud Firestore库

python

尝试在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模块:

pip install --upgrade -t libs firebase-admin

并运行应用

dev_appserver app.yaml


阅读 239

收藏
2021-01-20

共1个答案

一尘不染

Google Cloud Firestore要求grpc

pip install grpcio

但是,根据您的操作系统,还有其他步骤。查看
https://github.com/grpc/grpc/tree/master/src/python/grpcio

2021-01-20