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 <env_name>
$ 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 in the new 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/jjhelmus/conda4aarch64/releases/download/1.0.0/c4aarch64_installer-1.0.0-Linux-aarch64.sh
$ chmod +x c4aarch64_installer-1.0.0-Linux-aarch64.sh
$ ./c4aarch64_installer-1.0.0-Linux-aarch64.sh

When prompted with the following question answer yes

Do you wish the installer to initialize c4aarch64_installer in your
/home/<username>/.bashrc? [yes|no]

3. Add the c4aarch64 and conda-forge channels to your conda configuration:

$ conda config --add channels c4aarch64
$ conda config --add channels conda-forge

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

$ conda install -c numba numba

5. (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

Last update: March 23, 2020