Using conda (recommended)¶
conda install -c conda-forge gerrychain
For this command to work as intended, you will first need to activate
the conda environment that you want to install GerryChain in. If
the environment you want to activate is called
vrdi (for example),
then you can do this by running
conda activate vrdi
If this command causes problems, make sure conda is up-to-date by running
conda update -n base conda conda init
For more information on using conda to install packages and manage dependencies, see Getting started with conda.
To install GerryChain from PyPI, run
pip install gerrychain from
the command line.
This approach often fails due to compatibility issues between our
different Python GIS dependencies, like
shapely. For this reason, we recommend installing
from conda-forge for most users.