Skip to content

Anaconda on the AIR-T

Conda is a powerful package and environment manager designed to simplify the installation and management of software dependencies across platforms. It enables users to create isolated environments for Python and non-Python packages, ensuring compatibility and reproducibility. For Deepwave Digital's AIR-T, Conda is valuable for managing the complex dependencies of signal processing and machine learning tools, allowing streamlined deployment and consistent performance across development and production systems.

This tutorial will show you how to create an AirStack conda environment on the AIR-T. Conda comes pre-installed with a built-in local conda channels for the AIR-T drivers.

The following instructions apply to AirStack version 0.5.0 - 1.X only. For AirStack 0.4, see this tutorial. Conda support is coming soon to Airstack 2.0.

Create AirStack Conda Environment

Basic conda environment files are provided with the AIR-T for AirStack 0.5.0+ in the following directory:

  • /opt/deepwave/AIR-T_QuickStart_Apps/conda/environments

For the most up-to-date environment files for the AIR-T and information about creating custom conda environments that may include machine learning frameworks, please see our GitHub page here:

We will now create a conda environment called airstack using the airstack.yml file provided by Deepwave. You may modify this to fit your application.

Build Conda Environment

On the AIR-T with AirStack 0.5.0+, run the following command to create the environment:

conda env create -f /opt/deepwave/AIR-T_QuickStart_Apps/conda/environments/airstack.yml

Testing a New Conda Environment

Activate the conda environment and check that the current python version comes from a conda path:

$ conda activate airstack
$ which python
/home/<your_user>/.conda/envs/airstack/bin/python

Then run the hello_world.py example included in AirStack:

python /opt/deepwave/AIR-T_QuickStart_Apps/python/hello_world.py

Removing the Conda Environment

To remove the AirStack Conda environment, run the following command:

conda remove --name airstack --all