It also was the only way I could take care of the oauth2client issue I ran into the last time I installed the EE software. This should help you avoid version differences between your local machine and the appengine server. Make sure to hit Enter for the changes to take effect If you are using dev_appserver.py from the commandline, make sure that you sourced the environment before running it: source ee-env Set up the Hello World project Quickstart for Python App Engine Standard Environment Setting up project librariesĪlternatively, you can set up your own library ($(PROJECT_DIR)/ee-lib) directly in the project directory and install earthengine-api there. Enter $(PATH_TO_ANACONDA_INSTALLATION)/envs/ee-env/bin/python2.7. To use the Launcher with this environment, make sure the python path in the lunacher is set correctly: go to GoogleAppEngineLauncher-> Preferences -> Python Path. Now that you have set up this basic python env, you will need to install some packages there that Earthengine needs in this environmentĬonda install httplib2 oauth2client jinja2 cryptography numpy=1.6.2 It will be installed by conda in $(PATH_TO_ANACONDA_INSTALLATION)/envs in the example below we creat the env ee-env. Python packages that match the versions on the app engine server. This will allow you to create your own python environment with versions of Creating a conda environment for Earthengine API That will give you the launcher as well as the dev_appserver commandline utility. If you are on MAC, you get install the App Engine SDK via the PHP SDK instead. You will need to dev_appserver.py run on localhost and deploy to the appsot server. Note: The Python SDK does not contain the Launcher anymore. Install the Google App Engine SDK App Engine SDK Downloads That's why we need pip on top of anaconda conda install pip 2.4 Install the earthengine api pip install earthengine-api 2.5 Test the installation The earthengine api can only be installed with pip (and not with anaconda). Anaconda is cool and helps manage dependencies between packages! Get the latest anaconda version 2.2 Configure conda to use conda-forge bashrc (.bash_profile on OSX), add these lines (xxxxxxx is your account number)Įxport EE_SERVICE_ACCOUNT=Įxport EE_SERVICE_EMAIL= EE_PRIVATE_KEY_FILE=/path_to_.pem_fileĢ.Installing the Earthengine API (Python) 2.1 Install anacondaĪnaconda helps you install and manage python and other packages. Once you have set up your account, you can view your credentials (Account ID, email, keys) at theĪdd the Google EE account information to your environment variables: Follow the instructions below to set up your service account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |