Net*_*ern 0 pycharm python-2.7 grpcio
我有一个简单的Python 2.7Google App Engine 应用程序。我将PyCharmProfessional IDE 设置为使用模拟器调试或运行应用程序Datastore,并收到以下错误:
`Cannot use the Cloud Datastore Emulator because the packaged grpcio is incompatible to this system. Please install grpcio using pip`
Run Code Online (Sandbox Code Playgroud)
我尝试使用不做任何更改来安装此软件包( 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
如果我从终端窗口运行此命令,它运行良好
你安装了 python 3 和 python 2.7 吗?如果是的话,您pip install grpcio可能正在安装 python 3。尝试
python2.7 -m pip install grpcio
为您需要运行的grpciopython 2.7 环境进行安装。dev_appserver.py