Python 如何在本地安装google.appengine.ext ndb
我正在尝试使用ndb将一些数据写入google数据存储。我的测试设置使用google数据存储,但使用本地python程序。我已经安装了googlecloudsdk和datastoresdk,但仍然收到导入错误。我应该安装其他东西吗Python 如何在本地安装google.appengine.ext ndb,python,google-app-engine,app-engine-ndb,Python,Google App Engine,App Engine Ndb,我正在尝试使用ndb将一些数据写入google数据存储。我的测试设置使用google数据存储,但使用本地python程序。我已经安装了googlecloudsdk和datastoresdk,但仍然收到导入错误。我应该安装其他东西吗 from google.appengine.ext import ndb class dsObj(ndb.Model): name = ndb.StringProperty() 产生的错误消息是: File /... line 10, in <mo
from google.appengine.ext import ndb
class dsObj(ndb.Model):
name = ndb.StringProperty()
产生的错误消息是:
File /... line 10, in <module>
from google.appengine.ext import ndb
ImportError: No module named appengine.ext
文件/。。。第10行,在
从google.appengine.ext导入ndb
ImportError:没有名为appengine.ext的模块
您是否使用Cloud SDK dev_appserver.py来运行应用程序?
请参阅
假设您使用的是App Engine标准环境。显示所需的用法 是否可以使用此命令确认是否已安装gcloud appengine组件
gcloud components install app engine python