Note: segregation supports python 3.5 and 3.6 only. Please make sure that you are operating in a python 3 environment.

  1. pip directly running in the prompt:

    pip install segregation
  2. Using the conda-forge channel as described in

    conda config --add channels conda-forge
    conda install segregation
  3. Another recommended method for installing segregation is with anaconda ( Clone this repository or download it manually then cd into the directory and run the following commands (this will install the development version):

    conda env create -f environment.yml
    source activate segregation
    python develop
  4. pip directly from this repository running in the prompt (if you experience an issue trying to install this way, take a look at this discussion:

    pip install git+