首先,我得到了以下错误
app-development是我的google云中的一个文件
****appconfig.py -A app-development update ./app.yaml****
Traceback (most recent call last):
File "appengine_config.py", line 4, in <module>
from google.appengine.ext import vendor
ImportError: No module named google.appengine.ext接下来,我告诉大家google cloud没有安装,我试着安装它,我说已经安装了,我不知道为什么我的文件失败了
sudo apt-get install google-cloud-sdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
google-cloud-sdk is already the newest version (240.0.0-0).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.接下来,我尝试到python终端进行测试。
>>> import google
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named google我缺少的是我还安装了python的所有依赖项。
sudo apt-get install google-cloud-sdk-app-engine-python.
[sudo] password for mdvenkatesh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
google-cloud-sdk-app-engine-python is already the newest version (240.0.0-0).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.我使用的是Ubuntu 17.04版本python 2.7版本
此外,我看到了redme.txt文件,并遵循
此外,我还尝试使用google init
1)app-development
2) app-deployment它显示了我的google应用程序引擎中的以下两个项目
发布于 2019-03-27 23:37:28
google.appengine包特定于App Engine Standard Python2.7运行时,并且在其他地方不可用,包括Python3.7运行时。
您没有包括如何尝试运行应用程序,但是如果您尝试在本地运行应用程序,则需要使用dev_appserver.py命令。更多细节请看这里:"Getting Started with Flask on App Engine Standard Environment“
https://stackoverflow.com/questions/55378095
复制相似问题