0

我有一个简单的Python 2.7Google App Engine 应用程序。我将我的PyCharm专业 IDE 设置为使用模拟器调试或运行应用Datastore程序,并收到以下错误:

`Cannot use the Cloud Datastore Emulator because the packaged grpcio is incompatible to this system. Please install grpcio using pip`

我试图安装这个包(grpcio)使用pip没有改变

PyCharm 运行以下命令来启动应用程序: /usr/bin/python2.7 /home/netanel/Desktop/google-cloud-sdk/google-cloud-sdk/bin/dev_appserver.py --port 8080 --host localhost --clear_datastore=yes app.yaml --support_datastore_emulator=True

如果我从终端窗口运行此命令,它运行良好

4

1 回答 1

3

您是否同时安装了 python 3 和 python 2.7?如果是这样,您pip install grpcio可能会为 python 3 安装。尝试

python2.7 -m pip install grpcio

为需要运行grpcio的 python 2.7 环境安装。dev_appserver.py

于 2020-01-30T23:49:58.697 回答