首先我遇到以下错误
应用程序开发是我的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,我尝试安装它是说已安装alredy,但我不知道为什么我的文件失败
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 App引擎中的以下两个项目
答案 0 :(得分:0)
google.appengine
包专用于App Engine标准Python 2.7运行时,在其他地方(包括Python 3.7运行时)不可用。
您没有提供尝试运行应用程序的方式,但是,如果要在本地运行,则需要使用dev_appserver.py
命令。在此处查看更多详细信息:“ Getting Started with Flask on App Engine Standard Environment”