How to install the geological Python library Gempy in Windows with WSL - Tutorial

Gempy is an open-source library for modeling geology written in Python. The library is capable of creating complex 3D geological models including structures, fault networks, and unconformities and it can be coupled with uncertainty analysis.

This tutorial is developed under a Ubuntu 20.04.2 image installed from the Windows Store and covers all the steps to setup the user, install core packages, install Python packages and set up local paths to have a complete Gempy enviroment running under Jupyter lab.

Tutorial

Steps

On your ubuntu 20.04.2 installation:

User: hatari

Password: labs

Install core packages:

sudo apt update

sudo apt install python3-pip

sudo apt install jupyter-core

sudo apt install libgl1-mesa-glx xvfb libxrender1

Add a local directory to path:

export PATH="/home/hatari/.local/bin:$PATH"

echo $PATH

Install gempy and pyvista:

pip install pyvista==0.35.2

pip install gempy jupyterlab

Test your installation. Move to your directory:

cd /mnt/c/Users/**yourusername**/Documents/

jupyter lab

Comment

Saul Montoya

Saul Montoya es Ingeniero Civil graduado de la Pontificia Universidad Católica del Perú en Lima con estudios de postgrado en Manejo e Ingeniería de Recursos Hídricos (Programa WAREM) de la Universidad de Stuttgart con mención en Ingeniería de Aguas Subterráneas y Hidroinformática.

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.