unoffical LAMMPS Molecular Dynamics Python package
Maintained. Last release 7 months ago, commits in 26 of the last 26 weeks. Weaker on release cadence and contributor spread.
pip install lammpsREADME as published on PyPI with version 2025.7.22.4.0.
LAMMPS unofficial wheels
This unofficial repository holds the code to build LAMMPS platform wheels for Linux, macOS, and Windows. LAMMPS can easily be installed using
pip install lammps
# If you didn't install MPI
pip install lammps[mpi]
The package requires Python 3.7 and above. Most packages are enabled in this distribution. For the usage of LAMMPS, see LAMMPS documentation.
Available Builds
| OS | Arch | Bit | Conditions | MPI |
|---|---|---|---|---|
| Linux | x86_64 | 64 | glibc >= 2.28 | MPICH |
| Linux | aarch64 | 64 | glibc >= 2.28 | MPICH |
| macOS | x86_64 | 64 | >= macOS-11 | MPICH |
| macOS | arm64 | 64 | >= macOS-11 | MPICH |
| Windows | amd64 | 64 | Microsoft MPI |
To use MPI, it is required to use the same MPI as what the package was built against.
Usage
Python
from lammps import PyLammps
Command line
lmp -h
Plugins
Developers should build plugins with the same MPI, and can register the plugin directory using the entry points: