我在使用Google App Engine配置新的Windows计算机时遇到问题。我最近一次使用旧计算机是在一年多以前,我不记得我是否使用过相同的工具。
以下是我遵循的步骤:
conda create --name gae-firebase python=2
setx CLOUDSDK_PYTHON C:\Anaconda3\envs\gae-firebase\python.exe
activate gae-firebase
cd \workspace\google
git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
cd python-docs-samples\appengine\standard\firebase\firenotes
pip install -r backend\requirements.txt -t lib
dev_appserver.py frontend/app.yaml backend/app.yaml
并回答“是”以安装app-engine-python组件。最后它说dev_appserver.py: error: too few arguments
看起来脚本没有在参数列表中看到yaml文件名。我尝试卸载并重新安装多次更改项目的顺序或更改受类似问题答案启发的其他内容几个小时,但这是我最接近成功的。
我做错了什么?
答案 0 :(得分:0)
在app引擎SKD的最新安装中,有一个README文件说:
RUNNING THE SDK
=========================
You can run the SDK with the following command:
dev_appserver.py [options] <application root>
Application root must be the path to the application to run in this server.
Must contain a valid app.yaml or app.yml file.
从我所看到的,你没有提供<application root>
。例如,我可以通过以下方式运行演示应用程序:
python dev_appserver.py demos\python\guestbook
答案 1 :(得分:0)
选择任何 .py文件按alt + enter(鼠标右键单击 - &gt;属性)选择更改,然后选择python.exe(应用程序)打开.py文件从安装目录运行您的文件... ;-p