Installing

Which Python?

You’ll need Python 3.5 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 following are optional dependencies that can make some parts of the code faster if they are installed:

  • numba: replaces numpy calculations of predictions and Jacobian matrices in splines with faster and more memory efficient multi-threaded versions.
  • pykdtree: replaces scipy.spatial.cKDTree for better performance in near neighbor calculations used in blocked operations, distance masking, etc.

Most of the examples in the Gallery and Tutorials also use:

Installing with conda

You can install Verde using the conda package manager that comes with the Anaconda distribution:

conda install verde --channel conda-forge

Installing with pip

Alternatively, you can also use the pip package manager:

pip install verde

Installing the latest development version

You can use pip to install the latest source from Github:

pip install https://github.com/fatiando/verde/archive/master.zip

Alternatively, you can clone the git repository locally and install from there:

git clone https://github.com/fatiando/verde.git
cd verde
pip install .

Testing your install

We ship a full test suite with the package. To run the tests, you’ll need to install some extra dependencies first:

After that, you can test your installation by running the following inside a Python interpreter:

import verde
verde.test()