Anaconda on the AIR-T


Anaconda is a great virtual environment for developing Python applications and it is fully supported by the AIR-T and AirStack. This tutorial will show you how to create an AirStack conda environment on the AIR-T. Note that GNU Radio is not yet available in this environment, but the SoapySDR radio drivers and GPU acceleration for signal processing and deep learning are.

Anaconda does not come pre-installed with AirStack. Instructions are included at the end of this tutorial if you do not already have Anaconda installed on your system.

Create AirStack Conda Environment

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.

$ wget docs.deepwavedigital.com/Open_Source/files/airstack.yml
$ conda env create -f airstack.yml

Install AirStack Drivers in Conda Environment

This section walks you though adding symbolic links to the AIR-T radio drivers from within a new conda environment. The radio will not work inside the environment without these symbolic links unless these steps are followed, so you must do this for each new conda environment that you create.

$ conda activate airstack
$ wget docs.deepwavedigital.com/Open_Source/files/conda_post_install.sh
$ chmod +x conda_post_install.sh
$ ./conda_post_install.sh

The conda_post_install.sh shell script will create the necessary symbolic links to bring the radio drivers into the airstack environment.

Testing a New Conda Environment

Copy the conda_test.py script to your AIR-T to test full operation.

$ conda activate airstack
$ wget docs.deepwavedigital.com/Open_Source/files/conda_test.py
$ python conda_test.py


Installing Anaconda on AIR-T

We recommend the conda4aarch64 with instructions provided here. The instructions are reproduced below with some slight modifications.

1. If not already done, power on the AIR-T

2. Install Anaconda:

$ wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-pypy3-Linux-aarch64.sh
$ chmod +x Miniforge-pypy3-Linux-aarch64.sh
$ ./Miniforge-pypy3-Linux-aarch64.sh

When prompted with the following question answer yes

Do you wish the installer to initialize Miniforge3? [yes|no]

3. (Optional) At this point, the conda base environment will be activated whenever a terminal is opened. We recommend removing this behavior by executing the following:

$ conda config --set auto_activate_base false

Now the conda environment is only activated when you type conda activate <env_name>.

4. (Optional) Install Numba from the numba channel:

$ conda install -c numba numba

Last update: July 2, 2020