Installation#

Requirements#

JAX is the core of this package and its installation is necessary to use it. The CPU version of JAX is included, as dependency, in the default installation of Pantea.

For machines with an NVIDIA GPU, it is recommended to install JAX using the following command (only Linux users):

$ pip install 'jax[cuda12]'

Please refer to the JAX Install Guide for full installation instructions.

For atom visualization in Jupyter Notebooks, it is also recommended to install nglview using conda as follows:

$ conda install -c conda-forge nglview

Stable release#

To install Pantea, run this command in your terminal:

$ pip install pantea

This is the preferred method to install Pantea, as it will always install the most recent stable release.

If you don’t have pip installed, this Python installation guide can guide you through the process.

From sources#

The sources for Pantea can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/hghcomphys/pantea

Or download the tarball:

$ curl -OJL https://github.com/hghcomphys/pantea/tarball/main

Once you have a copy of the source, you can install it with:

$ python setup.py install