Google App Engine / Python development environment construction procedure (late 2014)

The following is the explanation for Mac OS X. Hand environment Describes the procedure performed on Mac OS X 10.8.5.

Preparation

Have a Google account ready. Your account ID and password are often required when using various tools in the google cloud SDK, so you need to decide (or create one if you don't have one) before starting the procedure. You need at least one Google account to be the administrator of your GAE project.

Google Cloud SDK installation

1. Python2.7 installation

It's installed on MacOS X from the beginning. Check the version just in case. To check, start the terminal and execute the command `` `python```.

2. Install google cloud SDK

(Excerpt from https://developers.google.com/cloud/sdk/?hl=ja) Execute the following command from the terminal.

python


curl https://sdk.cloud.google.com | bash

Follow the prompts to continue (such as specifying the installation location). When you're done with curl, quit the terminal and reopen it (to reflect changes in environment variables). Then execute the following command.

python


gcloud auth login

Then execute the following command.

python


gcloud components update gae-python

This will install a set of tools for your local development server (such as GAELauncher).

3. Install pychecker (source code analysis tool)

Google Python Style Guide (Japanese translation is a little old, but here /pyguide.html)) recommends checking the source code with pychecker, so install it.

  1. Download from http://sourceforge.net/projects/pychecker/files/
  2. Extract the downloaded tar to any location and
  3. Go to that location in the terminal and run the following command:

python


sudo python setup.py install

Local development server operation check

If you do so far, the local development server should be ready to start, so let's try it.

  1. Launch GAE Launcher. The location of GAELauncher is by default:
~/google-cloud-sdk/platform/GoogleAppEngineLauncher.app
  1. Select [New Application…] from the [file] menu スクリーンショット 2014-12-08 16.30.26.png
  2. Give the Application ID an arbitrary name, select an arbitrary location in the Application Directory, and press the [Create] button.
  3. Select the created project and press the [Run] button.
  4. When the icon turns green, startup is complete. When you press the [Browse] button, the browser will start and Hello world should be displayed.

Editor environment maintenance

The editor and IDE environment for development can be anything, but this time I will describe the procedure when using Aptana3. If it is an Eclipse line, the same procedure can be used. (Should)

  1. Install Aptana Studio 3
  2. Install pleiades (Japanese plugin)
  3. Emmet installation (HTML / CSS tag input support plugin)
    Start Aptana, open
    [Help] menu-> [Install New Software], and enter http://emmet.io/eclipse/updates/ in the target URL to install.
  4. Install Command Line Tools for OS X
    To solve the problem that the Python interpreter cannot be recognized by Eclipse on OS X 10.8.
    http://stackoverflow.com/questions/5595276/pydev-eclipse-python-interpreters-error-stdlib-not-found
    http://stackoverflow.com/questions/11702139/pydev-debugger-unable-to-find-real-location-for-python-2-7-after-os-10-8-upgrad
  5. Start Aptana and register the PyDev interpreter from Preferences.
    Specify the following for the Python2.7 path.
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
```<br />
 When selecting from the GUI, go down as follows. <br />

Machintosh HD/system/Library/Framework/...


 * If you install google plugin for eclipse in Aptana3, Aptana will not start, so do not install it. The reason is unknown. You don't have to use it because it is not java development.

 * * If you get the error "Installation cannot be completed because one or more required items cannot be found" in "Install New Software", go to "Available Software Sites" and select "Eclipse Indigo Update Site". It may be because the check is unchecked.
 Check it and try again.


 The end

# Reference link
http://qiita.com/yuko/items/aaac6ea9536cd529106f
http://qiita.com/yuko/items/1c4ee5b081c5b6a3ac8a


Recommended Posts

Google App Engine / Python development environment construction procedure (late 2014)
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Python development environment construction
python2.7 development environment construction
[Google App Engine] Flow from development environment construction to application creation
[MEMO] [Development environment construction] Python
Runtime version of Google App Engine / Python Standard Environment
Google App Engine development with Docker
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
Emacs Python development environment construction memo
Python project environment construction procedure (for windows)
Environment construction (python)
[Python] Run Flask on Google App Engine
Python3 + venv + VSCode + macOS development environment construction
python environment construction
Python --Environment construction
Environment construction procedure: Ubuntu + Apache2 + Python + Pyramid
Python environment construction
Building a development environment with Maven on Google App Engine [Java]
Python development server construction procedure (AWS + Anaconda)
python environment construction
Windows + gVim + Poetry python development environment construction
VS Code + Azure Functions + Python environment construction procedure
Tweet (API 1.1) on Google App Engine for Python
Kotlin / Native development environment construction & installation procedure & tutorial
python windows environment construction
homebrew python environment construction
About Python development environment
Development environment in Python
Mac environment construction Python
Python environment construction @ Win7
Turn off optimization options in the Google App Engine Go development environment dev_appserver.py
PIL with Python on Windows 8 (for Google App Engine)
Getting Started with Google App Engine for Python & PHP
Python development environment construction 2020 [From Python installation to poetry introduction]
QGIS3 Python plugin development environment construction with VSCode (macOS)
Procedure to exe python file from Ubunts environment construction
How to use Django on Google App Engine / Python
Python + Anaconda + Pycharm environment construction
Django development environment construction memo
Python environment construction (Windows10 + Emacs)
Python environment construction For Mac
Python3 environment construction (for beginners)
Organize your Python development environment
Python environment construction and TensorFlow
[ev3dev × Python] Build ev3dev development environment
Python environment construction under Windows7 environment
[For organizing] Python development environment
django project development environment construction
Environment construction of python2 & 3 (OSX)
[MEMO] [Development environment construction] wine
Build an Ubuntu python development environment on Google Cloud Platform
Construction of Python local development environment Part 2 (pyenv-virtualenv, pip usage)
Python environment construction procedure memo using Docker on Windows10 Home
Do you have any recommendations for a commentary book on Google App Engine / Python development?
Environment construction of python and opencv
Python environment construction memo on Windows 10
Anaconda python environment construction on Windows 10
Python + Unity Reinforcement learning environment construction
Construction of Python local development environment Part 1 (pyenv, pyenv-virtualenv, pip installation)