需要goog app engine的运行环境,结果翻找半天找不到怎么安装,做记录:
下载app engine , 地址如下:
https://cloud.google.com/appengine/downloads?hl=zh-TW
到这个网页,找不到下载地址,但却有这么多环境的版本,现安装python,下载python 标准版:
![QQ图片20180428195005.png](https://upload-images.jianshu.io/upload_images/9676923-651a1b6528b830da.png?imageMogr2/auto-orient/strip%7[图片上传中...(QQ图片20180428195629.png-f9e00f-1524916599044-0)]
CimageView2/2/w/1240)
这几个都不是下载地址,而是app engine需要的环境安装包,还加入了google cloud sdk 的安装,都不管,
下拉找到
Download and install the original App Engine SDK for Python.
点击,这里才是下载地址。
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
完成!