试图在python服务器上集成Google防火墙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
发布于 2018-05-03 14:55:12
Google需要grpc。
pip install grpcio但是,还有其他步骤取决于您的操作系统。查看https://github.com/grpc/grpc/tree/master/src/python/grpcio
发布于 2018-03-18 17:39:07
要解决“google云-火药库”模块错误,请执行以下操作:
,然后像这样导入:
发布于 2019-08-01 00:55:45
这对我有用。试着卸载和重新安装google
https://stackoverflow.com/questions/48264536
复制相似问题