2. enveloc Installation

enveloc is availabe on github and as a repository on PyPI.

I strongly recommend installing enveloc using conda because this will:

  1. Simplify the install

  2. Separate your enveloc install from your system Python so things don’t break

If you do not have either a miniconda or anaconda installation you can follow the conda-install instructions. Once anaconda (or miniconda, my preference) is installed, create a new conda environment with Python v3.11 with the following:

conda create -n enveloc python=3.11

Next activate that environment by calling:

source activate enveloc

This ensures your enveloc environment is active, so that when you call pip, it will install packages into the enveloc environment. Now install enveloc:

pip install enveloc

To test the install:

from enveloc.example_utils import test

test()

2.1. Python Version

The code has been tested on Python 3.11.

2.2. Dependencies

  • obspy

  • cartopy

  • scikit-learn

  • utm

2.3. Notes

All packages should be available through PyPI. I had troubles with installing cartopy using pip with versions of Python <3.9. If you can get cartopy working (e.g. via conda install), enveloc should still work with earlier Python versions 3.7 & 3.8.