Installation
mespy requires Python 3.12 or newer. The following commands assume that you are already in the project directory and that the local virtual environment is .venv, in line with the repository make targets.
With uv
uv venv --python 3.12
source .venv/bin/activate
uv pip install -e ".[dev]"
With pip
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
From Jupyter Notebook
Run in a code cell
%pip install mespy
then remove the cell.
On Colab
Run in a code cell:
!pip install mespy
then remove the cell.
Quick check
After installation you can verify that the import works with a minimal test.
python -c "from mespy import load_csv, weighted_mean; print('mespy ok')"
If you only want the local package without development tools, replace ".[dev]" with .. In that case make test and make docs are not guaranteed, because they require the development dependencies.
What gets installed
runtime dependencies:
numpy,pandas,matplotlibdevelopment tools:
pytest,sphinx,pydata-sphinx-theme,myst-nb,build,twinelocal package in editable mode when you use
-e
Next step
After installation you can continue with the Quick start or open the Examples.