============ 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 .. _install-from-source: 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 `https://github.com/pyxem/diffsims/archive/v/diffsims-.tar.gz`_, where the version ```` can be e.g. ``0.5.1``, and ``tar.gz`` can be exchanged with ``zip``. .. _https://github.com/pyxem/diffsims/archive/v/diffsims-.tar.gz: https://github.com/pyxem/diffsims/archive/v/diffsims-.tar.gz