【发布时间】:2017-05-28 12:52:21
【问题描述】:
为了在 Python + GAE 应用程序中使用 firebase 进行身份验证,我使用了几个 google 库。 我已经为 requirements.txt 配置了以下内容:
google-auth==1.0.1
requests==2.14.2
requests-toolbelt==0.7.1
这是我要导入的:
import google.auth.transport.requests
当我运行 pip install 时,它们会在本地安装并且我没有收到任何错误。
local libs screenshot
但是当我尝试将此应用程序部署到 Google App Engine 时,所有这些外部库都会出现相同的错误。 GAE 没有找到文件:
ImportError: No module named auth.transport.requests
【问题讨论】: