Google App Engine appcfg.py shows the help message for every command

北慕城南 提交于 2019-12-03 07:18:21
jonincanada

The following fix worked for me. It looks like appcfg.py doesn't like PYTHON27 and ALWAYS returns the help menu. I fixed it by executing it with PYTHON25 and hard coded all my file locations:

C:\Python25-archive\python "C:\Program Files (x86)\Google\google_appengine\appcfg.py" rollback C:\scripts\myapp

The right way is to change the environment variables on Windows 7:

  1. Go to System Properties
  2. Go to Advance System Settings
  3. Click on Environment Variables
  4. Append to Path variable the values C:\Python27\
  5. Click Ok and restart your computer. (Yes, it is needed.)

Another way is to:

  1. Open command Prompt
  2. Locate your python.exe file. For example:

    C:\Python27>_

  3. Then, run a python command that looks like this.

    python <appcfg_directory> download_app -A <your_app_id> -V <your_app_version> <output-dir>

Where <appcfg_directory> is equal to C:\Program Files\Google\google_appengine\appcfg.py. (Depending on your file location)

Don't forget to put quotes before and after <appcfg_directory>

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!