- Setup 2 GB swap
- Make sure there's room in /tmp ( > 2 GB)
To be able to use the prebuild wheel of tensorflow python 3.5 is needed.
sudo apt-get update && sudo apt-get install -y build-essential git libexpat1-dev libssl-dev zlib1g-dev libncurses5-dev libbz2-dev liblzma-dev libsqlite3-dev libffi-dev tcl-dev linux-headers-generic libgdbm-dev libreadline-dev tk tk-dev
wget https://www.python.org/ftp/python/3.5.4/
tar -xzf Python-3.5.4.tgz
cd Python-3.5.4
./configure --prefix=/usr/local --enable-loadable-sqlite-extensions --with-lto --with-system-expat --with-system-ffi --enable-ipv6 --disable-rpath --enable-shared --enable-optimizations
make && sudo make install
git clone https://github.com/MycroftAI/mycroft-precise.git
cd mycroft-precise
python3.5 -m venv .venv
wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.13.1/tensorflow-1.13.1-cp35-none-linux_aarch64.whl
pip install tensorflow-1.13.1-cp35-none-linux_aarch64.whl
pip install cython
pip install --update setuptools
./build.sh
For anyone trying this as of 2023-06-20, it might be best to try the steps below.
Create a default ALSA resource file
Binary Install
Get Keyword Model
Run Listener
On an Manjaro Linux aarch64 system I got some ALSA errors, no doubt remedied through config files, but it still worked.