GAE Python:dev_appserver.py:错误:参数太少 [英] GAE Python : dev_appserver.py: error: too few arguments

查看:298
本文介绍了GAE Python:dev_appserver.py:错误:参数太少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行 https://cloud.google所述的基本helloworld代码。 COM / AppEngine上/文档/蟒蛇/ 。但是,每当我尝试dev_appserver.py helloworld /命令时,我都会收到dev_appserver.py命令的使用错误。

我已经安装了Python 2.7,并且在我的系统上安装了Python 2.7 Anaconda。 Anaconda Python可能是问题的原因吗?



我的代码的文件结构如下:


  • 项目


    • helloworld


      • app.yaml

      • helloworld.py


    • README.md

    >



我尝试从'Project'文件夹和'helloworld'文件夹中执行dev_appserver.py helloworld /命令。但是在这两种情况下我都会得到同样的错误。



任何帮助将不胜感激!



谢谢!

解决方案

您只需执行 dev_appserver.py ,其路径为 app.yaml ,如注释所示。


I am trying to run the basic helloworld code described here https://cloud.google.com/appengine/docs/python/. However, whenever I try the dev_appserver.py helloworld/ command, I get a usage error for the dev_appserver.py command.

I have installed Python 2.7 and also have Python 2.7 Anaconda installed on my system. Could the Anaconda Python be the cause of the issue?

The file structure of my code is as follows:

  • Project
    • helloworld
      • app.yaml
      • helloworld.py
    • README.md

I have tried executing the dev_appserver.py helloworld/ command from inside the 'Project' folder and the 'helloworld' folder. But I get the same error in both cases.

Any help would be greatly appreciated!

Thanks!

解决方案

You just need to execute the dev_appserver.py with path to app.yaml in the command itself, as suggested in comments.

这篇关于GAE Python:dev_appserver.py:错误:参数太少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆