Firebase管理员未导入Google App Engine

时间:2018-11-26 12:07:57

标签: python firebase google-app-engine firebase-admin

我在python2中安装了firebase admin 这是路径

/usr/local/lib/python2.7/dist-packages/firebase_admin

它与核心python正常工作并成功导入

import firebase_admin
from firebase_admin import auth
from firebase_admin import credentials
cred = credentials.Certificate('hfbi9-52dc3dd6bf.json')

default_app = firebase_admin.initialize_app(cred)

user = firebase_admin.auth.create_user(
    email='user@example.com',
    email_verified=False,
    phone_number='+15555550100',
    password='secretPassword',
    display_name='John Doe',
    photo_url='http://www.example.com/12345678/photo.png',
    disabled=False
)

但是当我在Google App Engine中导入这些模块并运行它时,找不到它。

0 个答案:

没有答案