Installation¶
You can install ebsdlab using Conda or pip. ebsdlab supports Python >=3.10.
1. Clone the repository:
$ git clone https://github.com/micromechanics/ebsdlab.git ./ebsdlab
$ cd ebsdlab
2. Create and activate the Conda environment:
The environment.yml file defines the necessary dependencies and the environment name.
$ conda env create -f environment.yml
After creation, activate the environment:
$ conda activate ebsdlab
3. Install the `ebsdlab` package:
With the Conda environment activated, install the package using pip:
$ python -m pip install .
1. Set up a Python virtual environment (recommended):
Using a virtual environment prevents conflicts with other projects.
$ python -m venv venv_python_ebsd # Create a virtual environment
#
# Activate the environment:
# On Linux/macOS:
$ source venv_python_ebsd/bin/activate
#
# On Windows (Command Prompt):
# venv_python_ebsd\Scripts\activate.bat
# On Windows (PowerShell):
# .\venv_python_ebsd\Scripts\Activate.ps1
2. Install the `ebsdlab` package:
This command will install the package and its Python dependencies directly from GitHub:
$ pip install git+https://github.com/micromechanics/ebsdlab.git
Graphical user interface¶
Install the optional GUI dependency and start the application:
$ pip install 'ebsdlab[gui]'
$ ebsdlab-gui
EDAX OIM .h5 files need h5py: pip install 'ebsdlab[h5]'.
Next: Quickstart.