Install

Last updated on 2025-04-22 | Edit this page

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 and Paraview

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 😌!

Callout

BASH

conda install -c conda-forge warpx 

Ok, maybe two lines if you want to keep your system clean by creating a new environment.

BASH

conda create -n warpx -c conda-forge warpx 
conda activate warpx 

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:

BASH

which warpx.1d warpx.2d warpx.3d warpx.rz

If you get 3 different paths that look something like:

BASH

/home/<username>/anaconda3/envs/warpx/bin/warpx.xd

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.