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