As detailed on the GoogleCloudPlatform Github issue , the following fails with a ModuleNotFound
:
$ virtualenv env
$ env/bin/pip install firebase-admin google-cloud-storage
$ env/bin/python -c 'from firebase_admin import storage'
Traceback ... ModuleNotFoundError
Cross-posting here for visibility.
The problem was that PYTHONPATH
included .../google-cloud-sdk/platform/google_appengine/
.
Removing AppEngine from the PYTHONPATH
resolved the problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.