ImportError: No module named google.appengine.ext (Cloud Endpoints Frameworks v2)

ImportError: No module named google.appengine.ext (Cloud Endpoints Frameworks v2)

我正在尝试使用 google 端点 v2 在这个 tutorial

之后

我已经完成了所有步骤,直到 生成所需的配置文件: 步骤

但是当我尝试以下命令时

python lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname echo-api.endpoints.xxxxxxx.appspot.com

我收到以下警告和错误

WARNING: Could not find the fix_sys_path() function in dev_appserver.
If you encounter errors, please make sure that your Google App Engine SDK is up-to-date.
Traceback (most recent call last):
      File "lib/endpoints/endpointscfg.py", line 59, in
         import _endpointscfg_setup # pylint: disable=unused-import
      File "D:\Libraries\Documents\transporter\lib\endpoints_endpointscfg_setup.py", line 107, in
       ` _SetupPaths()
      File "D:\Libraries\Documents\transporter\lib\endpoints_endpointscfg_setup.py", line 103, in _SetupPaths
        from google.appengine.ext import vendor
ImportError: No module named google.appengine.ext

并且没有生成OpenAPI配置文件

我已经重新安装了所有东西,更新了所有东西,检查了系统变量,但仍然出现错误

p.s 在 windows 7

@HondaGuy 的评论是我在 python 路径中添加 app-engine 的答案,

我的 python 环境变量现在看起来像这样

C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine;