Installation

Before you begin, it’s highly recommended to set up a Python virtual environment for mesalab. Virtual environments create an isolated space for your project’s dependencies, preventing conflicts with other Python projects or your system’s global Python installation. This ensures a clean and reproducible setup. You can choose your favorite virtual environment manger.

If you’re not familiar with this process, here are two commonly used and recommended options: venv (Python’s built-in virtual environment module) or Conda (a popular package, dependency, and environment manager).




Install from pip

To install mesalab with pip:

$ pip install mesalab

Building from source

You can also install the current development version of mesalab with cloning the GitHub repository and install the code with pip:

$ git clone https://github.com/konkolyseismolab/mesalab
$ cd mesalab
$ pip install .

Unit test

To run the unit tests you may need to install pytest:

$ pip install pytest
$ python3 -m pytest