阅读背景:

如何设置GAE_SDK_ROOT环境变量?

来源:互联网 

I am trying to run a Google app locally on Ubuntu, but when I run dev_appserver.py I get this error:

我试图在Ubuntu本地运行一个谷歌应用程序,但是当我运行dev_appserver时。我得到这个错误:

ValueError: Could not determine SDK root; please set GAE_SDK_ROOT environment variable.

Does anyone know how to fix it?

有人知道怎么修理吗?

2 个解决方案

#1


2  

export GAE_SDK_ROOT= wherever you unzipped the Google App Engine SDK

#2


1  

Add this to your ~/.profile:

把这个添加到你的~/.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}

分享到: