Install KikuchiPy¶
KikuchiPy can be installed from Anaconda, the Python Package Index (pip
), or from source, and only
supports Python >= 3.7.
We recommend you install it in a conda environment with the Miniconda distribution:
conda create --name kikuchipy python=3.7
conda activate kikuchipy
If you prefer a graphical interface to manage packages and environments, install the Anaconda distribution instead.
Anaconda¶
Anaconda provides the easiest installation. Within the Anaconda Prompt, terminal or Command Prompt, install with:
conda install kikuchipy --channel conda-forge
If you at a later time need to update the package:
conda update kikuchipy
Pip¶
Anaconda provides the easiest installation. Within the Anaconda Prompt, terminal or Command Prompt, install with:
pip install kikuchipy
If you at a later time need to update the package:
pip install --upgrade kikuchipy
Note
KikuchiPy builds upon HyperSpy, which depends upon a number of libraries
that usually need to be compiled. Installing KikuchiPy with pip
may
therefore require some development tools.
Install from source¶
To install KikuchiPy from source, clone the repository from GitHub:
git clone https://github.com/kikuchipy/kikuchipy.git
cd kikuchipy
pip install --editable .
See the contributing guidelines for how to set up a development installation.