Python Can';t在谷歌应用程序引擎中导入数据存储
我正试图以这种方式将数据存储导入GAE中的代码Python Can';t在谷歌应用程序引擎中导入数据存储,python,python-2.7,google-app-engine,google-cloud-platform,google-cloud-datastore,Python,Python 2.7,Google App Engine,Google Cloud Platform,Google Cloud Datastore,我正试图以这种方式将数据存储导入GAE中的代码 from google.cloud import datastore 不幸的是,我在stackdriver中得到了一些类似这样的错误消息 from grpc._cython import cygrpc as _cygrpc ImportError: dynamic module does not define init function (initcygrpc) from google.cloud.datastore_v1
from google.cloud import datastore
不幸的是,我在stackdriver中得到了一些类似这样的错误消息
from grpc._cython import cygrpc as _cygrpc
ImportError: dynamic module does not define init function (initcygrpc)
from google.cloud.datastore_v1 import types
ImportError: cannot import name types
还是像这样
from grpc._cython import cygrpc as _cygrpc
ImportError: dynamic module does not define init function (initcygrpc)
from google.cloud.datastore_v1 import types
ImportError: cannot import name types
有人知道原因吗?
提前谢谢
==环境:标准
语言:python
运行时:python27这是通用客户端数据存储库,它不再与标准环境GAE沙盒限制兼容。见相关 发件人: 注意:对于用Python编写的应用程序引擎应用程序,不再推荐使用Google数据存储数据库客户端库;使用 改为谷歌数据存储NDB客户端库 因此,切换到(我发现它更优秀,具有更多的功能,针对GAE进行了优化,并且有更好的文档记录,就在GAE特定的文档区域)