我已經部署在谷歌應用程序Engine.In我的代碼Python代碼,試圖導入firebase_admin,但它顯示了以下錯誤,Python的火力地堡問題上沒有模塊名爲firebase_admin
import firebase_admin
ImportError: No module named firebase_admin
hello.py
import firebase_admin
from firebase_admin import credentials
from firebase_admin import db
我想簡單的Python代碼使用終端: hello.py
import firebase_admin
print firebase_admin
輸出端子:
~/Desktop$ python hello.py
<module 'firebase_admin' from '/usr/local/lib/python2.7/dist-packages/firebase_admin/__init__.pyc'>
您是否安裝了包裝? 'pip install firebase-admin' – Thomas
@ThomasMey是的,我安裝了sudo pip install firebase-admin ...它成功安裝了..但仍然出現這個錯誤... – Ramprasad
@ThomasMey我在我的Linux中使用PyCharm ...是的在本地機器上安裝firebase-admin的任何問題? – Ramprasad