我正在尝试在Ubuntu
本地运行Google应用,但是当我运行dev_appserver.py
时,我收到此错误:
ValueError: Could not determine SDK root; please set GAE_SDK_ROOT environment variable.
有谁知道如何修复它?
答案 0 :(得分:2)
export GAE_SDK_ROOT= wherever you unzipped the Google App Engine SDK
答案 1 :(得分:1)
将此添加到您的~/.profile
:
export CLOUDSDK_ROOT_DIR="/path/to/google/cloud/sdk/"
export APPENGINE_HOME="${CLOUDSDK_ROOT_DIR}/platform/appengine-java-sdk"
export GAE_SDK_ROOT="${CLOUDSDK_ROOT_DIR}/platform/google_appengine"
# The next line enables Java libraries for Google Cloud SDK
export CLASSPATH="${APPENGINE_HOME}/lib":${CLASSPATH}
# The next line enables Python libraries for Google Cloud SDK
export PYTHONPATH=${GAE_SDK_ROOT}:${PYTHONPATH}