Vayesta can be installed using pip or from source.

Installing with pip

The simplest way to install Vayesta is to use the

[~]$ git clone
[~]$ cd Vayesta
[~]$ pip install .

All required python packages, such as NumPy and PySCF will be installed automatically.

Installation from Source


Vayesta requires the following python packages when installing from source: NumPy, SciPy, PySCF, and h5py)

To install Vayesta from source, clone the GitHub repository and use cmake and make to compile:

[~]$ git clone .
[~]$ cd Vayesta/vayesta/libs
[~]$ mkdir build && cd build
[~]$ cmake ..
[~]$ make

To ensure that Vayesta is found by the Python interpreter when calling import vayesta, the installation location needs to be prepended to the PYTHONPATH environment variable as follows:

[~]$ export PYTHONPATH:"/path/to/vayesta":$PYTHONPATH

This command can be added to the ~/.profile file located in the home dirctory, to ensure that it is excecuted for every new shell instance.

Running Tests

After installation it is a good idea to run the test suite with pytest using the following command:

[~]$ pytest vayesta/tests