使用dev_appserver.py运行本地应用程序示例时出现键错误

时间:2016-10-19 12:56:05

标签: python google-app-engine gcloud

我正在尝试使用google云平台SDK(已添加到我的路径中)使用命令行dev_appserver.py在本地运行appengine-endpoints-helloendpoints-python应用。它过去运行得很好,但现在当我尝试时,我收到一个错误:

Error processing line 2 of
/Users/hannah/anaconda3/envs/py27/lib/python2.7/site-packages/grpc_google_pubsub_v1-0.8.1-py2.7-nspkg.pth:

Traceback (most recent call last):
File "/Users/hannah/anaconda3/envs/py27/lib/python2.7/site.py", line 161, in addpackage

  exec line
File "<string>", line 1, in <module>

KeyError: 'google'


Remainder of file ignored

它位于anaconda python2.7环境中。我试过查看site.py,但我无法将其追溯到一个明显缺失的链接。

用于从命令行部署的appcfg.py命令根本不起作用。找不到该命令。

bash: appcfg.py: command not found

正如我所说,我重新安装并授权了谷歌云SDK,它被添加到我的路径中并且没有解决任何问题。

哦,最后,每当我运行dev_appserver.py命令时,错误就会出现,而不仅仅是谷歌的示例代码。

任何提示都将不胜感激

0 个答案:

没有答案
相关问题