.. _installation: Installation ============ PyPI ---- Install the stable version of |phastphase|_ from `PyPI `_ using: .. code-block:: console pip install phastphase GitHub ------ Install the latest version of |phastphase|_ from `GitHub `_ using: .. code-block:: console pip install git+https://github.com/slmsuite/phastphase One can also clone |phastphase|_ directly and add its directory to the Python path. *Remember to install the dependencies (next sections)*. .. code-block:: console git clone https://github.com/slmsuite/phastphase Required Dependencies --------------------- The following python packages are necessary to run |phastphase|_. These are listed as PyPI dependencies and thus are installed automatically if PyPI (``pip``) is used to install. - `python `_ - `numpy `_ - `torch `_ - `torchaudio `_ - `torchvision `_ - `pytorch-minimize `_ One can also install these dependencies directly. .. code-block:: console pip install -r requirements.txt .. |phastphase| replace:: :mod:`phastphase` .. _phastphase: https://github.com/slmsuite/phastphase