Skip to content

Installation

Earth Engine Account

To use geemap, you must first sign up for a Google Earth Engine account. You cannot use Google Earth Engine unless your application has been approved. Once you receive the application approval email, you can log in to the Earth Engine Code Editor to get familiar with the JavaScript API.

signup

Install from PyPI

Geemap is available on PyPI. To install geemap, run this command in your terminal:

1
pip install geemap

Install from conda-forge

Geemap is also available on conda-forge. If you have Anaconda or Miniconda installed on your computer, you can install geemap using the following command:

1
conda install geemap -c conda-forge

The geemap package has some optional dependencies, such as GeoPandas and localtileserver. These optional dependencies can be challenging to install on some computers, especially Windows. It is highly recommended that you create a fresh conda environment to install geemap. Follow the commands below to set up a conda env and install geemap:

1
2
3
4
5
conda create -n gee python=3.11
conda activate gee
conda install -n base mamba -c conda-forge
mamba install geemap -c conda-forge
mamba install geopandas localtileserver -c conda-forge

The optional dependencies can be installed using one of the following:

  • pip install geemap[all]: installing all optional dependencies.
  • pip install geemap[backends]: installing keplergl, pydeck.
  • pip install geemap[lidar]: installing ipygany, ipyvtklink, laspy, panel, pyntcloud[LAS], pyvista.
  • pip install geemap[raster]: installing localtileserver, rio-cogeo, rioxarray, netcdf4, xarray_leaflet.
  • pip install geemap[sql]: installing psycopg2, sqlalchemy.
  • pip install geemap[streamlit]: installing streamlit-folium.
  • pip install geemap[vector]: installing geopandas, osmnx.

Check the YouTube video below on how to install geemap using conda.

geemap

Install from GitHub

To install the development version from GitHub using Git, run the following command in your terminal:

1
pip install git+https://github.com/gee-community/geemap

Upgrade geemap

If you have installed geemap before and want to upgrade to the latest version, you can run the following command in your terminal:

1
pip install -U geemap

If you use conda, you can update geemap to the latest version by running the following command in your terminal:

1
conda update -c conda-forge geemap

To install the development version from GitHub directly within Jupyter notebook without using Git, run the following code:

1
2
import geemap
geemap.update_package()

Use Docker

You can also use Docker to run geemap:

1
docker run -it -p 8888:8888 gee-community/geemap:latest