cuốn sách gpt4 ai đã làm

python - 如何在 Google AppEngine Python37 中获取凭据

In lại Tác giả: Walker 123 更新时间:2023-11-28 17:04:40 26 4
mua khóa gpt4 Nike

我在 AppEngine Python3.7 标准中启动了新应用。

我正在尝试使用以下代码片段获取凭据,但失败了。

任何人都能够在 GAE 标准 Python37 中获得证书?

đi vào:

from google.auth import app_engine
credentials = app_engine.Credentials()

Đầu ra:

The App Engine APIs are not available

câu trả lời hay nhất

将 App Engine Standard 与 python 3.7 结合使用时,没有任何 google.xxx 库可用。您必须构建自己的或使用标准的 Python 库。这适用于:auth,users,images,search,mail,taskqueue,memcache,urlfetch,deferred 等,甚至还有 ndb datastore界面。

对于数据存储,您使用 google-cloud-datastore 或一些第 3 方。

对于其他人,您使用标准的 Python 库,例如:google.auth => rauth, google.appengine.api.memcache => python-memcached

Đọc thêm ở đây:https://cloud.google.com/appengine/docs/standard/python3/python-differences

该页面推荐使用 Google Identity Platform 或 Firebase Authentication 进行授权。

关于python - 如何在 Google AppEngine Python37 中获取凭据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51799366/

26 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress