Installation#

diffsims can be installed from Anaconda, the Python Package Index (pip), or from source, and supports Python >= 3.6.

With pip#

diffsims is availabe from the Python Package Index (PyPI), and can therefore be installed with pip. To install, run the following:

pip install diffsims

To update diffsims to the latest release:

pip install --upgrade diffsims

To install a specific version of diffsims (say version 0.5.1):

pip install diffsims==0.5.1

With Anaconda#

To install with Anaconda, we recommend you install it in a conda environment with the Miniconda distribution. To create an environment and activate it, run the following:

conda create --name diffsims-env python=3.10
conda activate diffsims-env

If you prefer a graphical interface to manage packages and environments, you can install the Anaconda distribution instead.

To install:

conda install diffsims --channel conda-forge

To update diffsims to the latest release:

conda update diffsims

To install a specific version of diffsims (say version 0.5.1):

conda install diffsims==0.5.1 -c conda-forge

From source#

The source code is hosted on GitHub. One way to install diffsims from source is to clone the repository from GitHub, and install with pip:

git clone https://github.com/pyxem/diffsims.git
cd diffsims
pip install --editable .

The source can also be downloaded as tarballs or zip archives via links like pyxem/diffsims, where the version <major.minor.patch> can be e.g. 0.5.1, and tar.gz can be exchanged with zip.