5. Install pyaqsapi

The user has the choice of installing pyaqspi as a precompiled binary or from either pypi or conda-forge or installing from source.

5.1. Packaged Binary install options (preferred method)

Most users should install pyaqsapi using one of the packaged binary install options below.

5.2. Packaged binary install of pyaqsapi from pypi.org using pip or uv

pip install pyaqsapi

# List `pyaqsapi` metadata using pip:
pip show pyaqsapi

Alternatively, (uv)[https://github.com/astral-sh/uv] can be used as an alternative to pip by replacing the command
`pip` with `uv pip` if `uv` is installed

5.3. Packaged binary install of pyaqsapi from conda-forge using conda or mamba

Installing pyaqsapi from the conda-forge channel can be achieved by adding conda-forge to your channels with: .. code-block:: console

conda config –add channels conda-forge conda config –set channel_priority strict

Once the conda-forge channel has been enabled, pyaqsapi can be installed with conda: .. code-block:: console

conda install pyaqsapi

mamba can be used as an alternative to conda: .. code-block:: console

mamba config –add channels conda-forge mamba –set channel_priority strict mamba install pyaqsapi

It is possible to list all of the versions of pyaqsapi available on your platform: .. code-block:: console

conda/mamba search pyaqsapi –channel conda-forge

Alternatively, conda/mamba repoquery may provide more information: .. code-block:: console

# Search all versions available on your platform: {conda/mamba} repoquery search pyaqsapi –channel conda-forge

# List dependencies of pyaqsapi: {conda/mamba} repoquery depends pyaqsapi –channel conda-forge

5.4. Install pyaqsapi from source (manual install from github)

To install pyaqsapi first clone the pyaqsapi repository.

git clone https://github.com/USEPA/pyaqsapi.git

Next, in the project’s root directory use pip to install the proper dependencies that are required to build and install pyaqsapi.

pip install -r requirements.txt

While still in the project’s root directory use setuptools to build and pip to install the package.

python -m build .
python -m pip install .