Install
Last updated on 2025-04-22 | Edit this page
Estimated time: 10 minutes
Overview
Questions
- π§ How can I install and run WarpX?
- π΅οΈ How can I analyze the simulation results?
Objectives
- π» Install WarpX on your local machine either with Conda or from source
- π Install the visualizations tools in
Python
andParaview
Basic dependencies
Just a heads-up before we dive deeper.
Callout
π£ Everything you need to know to use WarpX is in the documentation, check it out!
Via Conda-Forge
First, you need a Conda installation and we will
assume that you indeed have one.
If not, follow the instruction
at this link.
You can install Conda on most operative systems: Windows, macOS,
and Linux.
We will also assume you have some familiarity with the
terminal. Once you have Conda on your system,
WarpX is available as a package via Conda-Forge.
The installation is a one-liner π!
Ok, maybe two lines if you want to keep your system clean by creating a new environment.
Now you should have 4 different WarpX binaries in your
PATH
called warpx.1d
, warpx.2d
,
warpx.3d
, warpx.rz
.
Each binary for a different dimensionality.
To check this, run:
If you get 3 different paths that look something like:
then you got this π! You can also import pywarpx
in
Python.
Caution
Condaβs WarpX is serial! To get a parallel WarpX version, install it from source.
From source
Caution
Coming soon. For now, refer to the main documentation.
Key Points
π― WarpX is easy to install via Conda:
conda -c conda-forge warpx
π The documentation is the first place to look for answers, otherwise check out our issues and discussions and ask there.