Installing
Contents
Installing¶
Which Python?¶
You’ll need Python 3.7 or greater.
We recommend using the
Anaconda Python distribution
to ensure you have all dependencies installed and the conda
package manager
available.
Installing Anaconda does not require administrative rights to your computer and
doesn’t interfere with any other Python installations in your system.
Dependencies¶
The required dependencies should be installed automatically when you install
Harmonica using conda
or pip
. Optional dependencies have to be
installed manually.
Required:
Optional:
pyvista and vtk (>= 9): for 3D visualizations. See
harmonica.prism_to_pyvista
.numba_progress for printing a progress bar on some forward modelling computations. See
harmonica.prism_gravity
.
The examples in the Gallery also use:
Installing with conda¶
You can install Harmonica using the conda package manager that comes with the Anaconda distribution:
conda install harmonica --channel conda-forge
Installing the latest development version¶
You can use pip
to install the latest source from Github:
pip install https://github.com/fatiando/harmonica/archive/main.zip
Alternatively, you can clone the git repository locally and install from there:
git clone https://github.com/fatiando/harmonica.git
cd harmonica
pip install .