Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Firebase issue No module named firebase_admin

I have deployed a python code in Google App Engine.In my code,tried to import firebase_admin,but it shows following error,

import firebase_admin
ImportError: No module named firebase_admin

hello.py

import firebase_admin
from firebase_admin import credentials
from firebase_admin import db

I tried simple python code using Terminal: hello.py

import firebase_admin
print firebase_admin

Output in terminal:

~/Desktop$ python hello.py
<module 'firebase_admin' from '/usr/local/lib/python2.7/dist-packages/firebase_admin/__init__.pyc'>
like image 869
Ramprasad Avatar asked Aug 07 '17 18:08

Ramprasad


1 Answers

Install "firebase-admin" by pip3 install firebase-admin

like image 59
ijas Avatar answered Sep 23 '22 14:09

ijas