我正在尝试将对话框流库与部署在Google App Engine标准环境中的应用程序集成。虽然我已经安装了Google核心API依赖项,但出现以下错误:
ImportError:没有名为google.api_core的模块
在研究此问题时,我能找到的答案是由于沙箱,它在标准环境中不起作用。我对此感到困惑,不胜感激。
File "dialogflow/__init__.py", line 17,
in <module> from dialogflow_v2 import AgentsClient File "dialogflow_v2/__init__.py", line 19,
in <module> from dialogflow_v2 import types File "dialogflow_v2/types.py", line 20,
in <module> from google.api_core.protobuf_helpers import get_messages File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1154,
in load_module raise ImportError('No module named %s' % fullname)
ImportError: No module named google.api_core