gpt4 book ai didi

python - google-app-engine 不支持库 "endpoints"。

转载 作者:太空宇宙 更新时间:2023-11-04 01:23:46 25 4
gpt4 key购买 nike

我正尝试在 Python 中为我的 google-app-engine 创建端点。我已按照 https://developers.google.com/appengine/docs/python/endpoints/ 上的说明进行操作当我尝试上传时,我收到以下消息:

Host: appengine.google.com Error parsing yaml file: the library "endpoints" is not supported in "guestbook/app.yaml", line 22, column 1

我相信我已经正确配置了所有内容,任何人都可以指出正确的方向吗?我相信为“端点”导入库对于实现此功能至关重要。

这是我的 app.yaml 文件:

application: xxxxxxx
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /_ah/spi/.*
script: enders.application

- url: /stylesheets
static_dir: stylesheets

- url: /.*
script: main.app
secure: always

libraries:
- name: endpoints
version: "1.0"

- name: pycrypto
version: "2.6"

- name: webapp2
version: latest

- name: jinja2
version: latest

最佳答案

确保您使用的是最新版本的 AppEngine SDK。 Cloud Endpoints 在 1.8.5 版中被移动到一个库中。

关于python - google-app-engine 不支持库 "endpoints"。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19485638/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com