Installation

From pip

For a selection of platforms (Linux/Windows/MacOS; all 64bit) and Python versions:

$ pip install xtgeo

Stable release in Equinor

Within Equinor, the stable release is pre-installed, so all you have to do is:

import xtgeo

From github

You will need swig (version 3 or later) installed, in addition to a C compiler (see below).

$ pip install git+https://github.com/equinor/xtgeo

From downloaded sources

You will need swig (version 3 or later) installed, in addition to a C compiler. Tested compilers are:

  • gcc on Linux (Version 4 and later)

  • Visual studio 2015 and 2017 on Windows

The sources for XTGeo can be downloaded from the Equinor Github repo.

You can either clone the public repository:

$ git clone git@github.com:equinor/xtgeo

Also you will need test data at the same folder level as the source:

$ git clone git@github.com:equinor/xtgeo-testdata

Hence folder structure may look like

/some/path/to/xtgeo
/some/path/to/xtgeo-testdata

For required python packages, see the requirements*.txt files and the pyproject.toml file in the root folder.

Once you have a copy of the source, and you have a virtual environment, then always run tests (run first compile and install with pip install .):

$ pytest

Next you can install it with:

$ pip install .