Installation¶
Prerequisites¶
- Python 3.10 or later
- A working VASP installation is not required to run DefectPL — only to produce the input files it reads.
Install from PyPI¶
Core only (no DFT parser)¶
Provides pure-math utilities, the native PROCAR parser, constants, and CLI commands that do not depend on pymatgen or phonopy.
With VASP file support¶
Adds pymatgen for reading POSCAR, CONTCAR, OUTCAR, EIGENVAL, and vasprun.xml files.
With phonon support¶
Adds phonopy for computing force constants and phonon band structures.
Full install (recommended)¶
Equivalent to defectpl[vasp,phonon].
Install from conda-forge¶
The conda package bundles all optional dependencies.
Install from source¶
The -e flag installs in editable mode so local changes take effect immediately without
reinstalling.
Verify the installation¶
Optional extras summary¶
| Extra | Additional packages | When you need it |
|---|---|---|
vasp |
pymatgen, pymatgen-core | Reading VASP output files |
phonon |
phonopy | Phonon force constants, band.yaml |
all |
pymatgen, pymatgen-core, phonopy | Full VASP workflow |