Installation#
PyPi#
To install the phasegen, you can use pip:
pip install phasegen
phasegen is compatible with Python 3.10, 3.11 and 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 'python>=3.10,<3.13' pip
mamba activate phasegen
pip install phasegen
Alternative, create a new file called environment.yml with the following content:
name: phasegen
channels:
- defaults
dependencies:
- python>=3.10,<3.13
- pip
- pip:
- phasegen
Run the following command to create a new conda environment using the environment.yml file:
mamba env create -f environment.yml
Activate the newly created conda environment:
mamba activate phasegen
You are now ready to use the phasegen package within the isolated conda environment.
import phasegen as pg