mycroft-precise/setup.sh

21 lines
628 B
Bash
Raw Normal View History

2017-11-03 23:22:38 +00:00
#!/usr/bin/env bash
set -e
sudo apt-get install -y python3-pip libblas-dev python3-scipy cython python3-h5py portaudio19-dev
git fetch && git reset --hard origin/rnn
arch="$(python3 -c 'import platform; print(platform.machine())')"
if ! python3 -c 'import tensorflow' 2>/dev/null && [ "$arch" = "armv7l" ]; then
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.1.0/tensorflow-1.1.0-cp34-cp34m-linux_armv7l.whl -O tensorflow.whl
sudo pip3 install tensorflow.whl
sudo pip3 uninstall mock || true
sudo pip3 install mock
fi
sudo pip3 install --upgrade pip
sudo pip3 install -e .