Installation#
PyPi#
To install the phasegen, you can use pip:
pip install phasegen
phasegen is compatible with Python 3.10 through 3.12.
Conda#
However, to avoid potential conflicts with other packages, it is recommended to install phasegen in an isolated environment. The easiest way to do this is to use conda (or mamba):
To do this, you can run
mamba create -n phasegen -c conda-forge phasegen
mamba activate phasegen
Alternatively, to ensure reproducibility, you can create a file environment.yml:
name: phasegen
channels:
- conda-forge
dependencies:
- phasegen
Then run the following commands to create and activate the environment:
mamba env create -f environment.yml
Activate the newly created conda environment:
import phasegen as pg