Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Installation

quantEM requires Python 3.11 or newer.

Install from PyPI

The released package is available on PyPI as quantem:

pip install quantem

To include the optional interactive Jupyter widgets:

pip install "quantem[widgets]"

GPU support

quantEM uses PyTorch for computation. The default pip install pulls in a torch build appropriate for your platform:

Device selection is described in GPU configuration.

Developer install

Development uses uv:

git clone https://github.com/electronmicroscopy/quantem.git
cd quantem
uv sync

uv sync --all-packages also installs the quantem.widget workspace package. Full developer setup (pre-commit, ruff, dependency management) is described in Contribute and in CONTRIBUTORS.md.

Verify the installation

import quantem
print(quantem.__version__)