gpt4 book ai didi

google-app-engine - 无法在我本地的 Google App Engine 上的 Go 中启动演示应用程序

转载 作者:IT王子 更新时间:2023-10-29 02:24:01 26 4
gpt4 key购买 nike

我在这里遵循了谷歌的教程:https://console.developers.google.com/start/appengine

在我尝试启动演示应用程序后出现以下错误:

$ goapp serve appengine-try-go

Traceback (most recent call last):
File "/home/nek/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 83, in <module>
_run_file(__file__, globals())
File "/home/nek/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 79, in _run_file
execfile(_PATHS.script_file(script_name), globals_)
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 36, in <module>
from google.appengine.tools.devappserver2 import dispatcher
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line 29, in <module>
from google.appengine.tools.devappserver2 import module
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 71, in <module>
from google.appengine.tools.devappserver2 import vm_runtime_factory
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_factory.py", line 25, in <module>
from google.appengine.tools.devappserver2 import vm_runtime_proxy
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_proxy.py", line 29, in <module>
from google.appengine.tools.devappserver2 import log_manager
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/log_manager.py", line 34, in <module>
from google.appengine.tools.docker import containers
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/docker/containers.py", line 47, in <module>
import docker
ImportError: No module named docker
error while running dev_appserver.py: exit status 1

我在带有 zsh 和 python 2.7.6 的 Ubuntu 14.04 上使用它。

有人知道为什么吗?

最佳答案

安装pip后,我执行了以下命令:

sudo pip install docker-py

现在可以了。

关于google-app-engine - 无法在我本地的 Google App Engine 上的 Go 中启动演示应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28943171/

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