ubuntu安装google app engine环境

需要goog app engine的运行环境,结果翻找半天找不到怎么安装,做记录:

下载app engine , 地址如下:
https://cloud.google.com/appengine/downloads?hl=zh-TW

ubuntu安装google app engine环境_第1张图片

到这个网页,找不到下载地址,但却有这么多环境的版本,现安装python,下载python 标准版:
ubuntu安装google app engine环境_第2张图片]
CimageView2/2/w/1240)

这几个都不是下载地址,而是app engine需要的环境安装包,还加入了google cloud sdk 的安装,都不管,
ubuntu安装google app engine环境_第3张图片

下拉找到
Download and install the original App Engine SDK for Python.

点击,这里才是下载地址。
ubuntu安装google app engine环境_第4张图片

在ubuntu下安装,所以选择linux版本,并且下面附带linux换将下的教程: ubuntu安装google app engine环境_第5张图片

To install on Linux:

Unzip the google_appengine_1.9.69.zip file that you downloaded, for example:
unzip google_appengine_1.9.69.zip
There is no App Engine installation script that you need to run after unzipping the files.

Add the google_appengine_1.9.69 directory to your PATH:
export PATH=$PATH:DIRECTORY_PATH/google_appengine_1.9.69/
Make sure Python 2.7 is installed on your machine using the following command:
/usr/bin/env python -V
The output should look like this: Python 2.7.[NUMBER]. If Python 2.7 isn't installed, install it now using the installation instructions for your Linux distribution.

解压:

unzip google_appengine_1.9.69.zip 

加入到环境变量里 /etc/profile

 sudo vim /etc/profile 

写入:

export PATH=$PATH:home/hades/google_appengine_1.9.69

完成!

你可能感兴趣的:(Python,ubuntu)