Installation#

EMCPy is designed to run on both local machines and HPC systems. We recommend setting it up inside a clean virtual environment to avoid conflicts with other Python packages.

1. Create and activate a virtual environment#

python -m venv .venv
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate

Note

If you prefer Conda, you can use conda create -n emcpy python=3.10 instead.

2. Upgrade pip#

python -m pip install --upgrade pip

3. Install EMCPy#

If you are developing from source (recommended for contributors):

pip install -e .

This performs an editable install, meaning changes you make to the source code are immediately available in your environment. If EMCPy is available on PyPI, you can install the latest release directly:

pip install emcpy

4. Optional extras#

Some features require additional packages:

  • Cartopy for map projections

pip install cartopy
  • Jupyter for interactive notebooks

pip install jupyterlab

Tip

On some systems (especially HPC), Cartopy may require GEOS/PROJ libraries. If you see build errors, consult Cartopy’s installation guide.


Once installed, head to the Quickstart to make your first EMCPy plot