Skip to content

Instantly share code, notes, and snippets.

@ziligy
Last active August 12, 2021 18:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziligy/7a11517635d527c5492706986dd5bf75 to your computer and use it in GitHub Desktop.
Save ziligy/7a11517635d527c5492706986dd5bf75 to your computer and use it in GitHub Desktop.
shell script to install rasa v1.6.0 on raspberry pi raspbian/buster
# install_rasa_on_pi.sh
#
# use with raspian 2019-09-26-raspbian-buster.img
# tested with rasa 1.6.0
#
# standard update
sudo apt update && sudo apt upgrade -y
# install latest pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
# install dependencies
sudo apt install python3-dev libatlas-base-dev libhdf5-dev libblas-dev liblapack-dev gfortran -y
sudo pip install setuptools --upgrade --ignore-installed
sudo pip install wrapt --upgrade --ignore-installed
sudo pip install botocore
sudo pip install scipy==1.3.3
# download tensorflow 1.15
# thanks to PINTO0309!!
# https://github.com/PINTO0309
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1GzjSi71jDUOVOoThEAtThEah5SqCoV59" > /dev/null
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1GzjSi71jDUOVOoThEAtThEah5SqCoV59" -o tensorflow-1.15.0-cp37-cp37m-linux_armv7l.whl
echo Download finished.
sudo pip install tensorflow-1.15.0-cp37-cp37m-linux_armv7l.whl
sudo pip install rasa
echo ---------------------------------------------------------
echo "install complete!"
echo "*** NOTE ** rasa works fine with pre-trained models only!"
echo "training a model on the pi is not currently operational"
echo ---------------------------------------------------------
@Suniron
Copy link

Suniron commented Feb 17, 2020

Error on tensorflow installing.... :'(

@ziligy
Copy link
Author

ziligy commented Feb 17, 2020 via email

@Suniron
Copy link

Suniron commented Feb 17, 2020

Thanks for you quickly answer !

Yes, it's already installed. I got this:

ERROR: No matching distribution found for tensorflow-cpu~=1.15.0 (from rasa)```

I have Ubuntu Server 19.10 on my Raspberry pi 4 4gb.

@ziligy
Copy link
Author

ziligy commented Feb 17, 2020 via email

@Suniron
Copy link

Suniron commented Feb 17, 2020

python -V:
Python 2.7.17

python3 -V:
Python 3.6.8

pip -V and pip3 -V:
pip 20.0.2 from /home/ubuntu/.local/lib/python3.6/site-packages/pip (python 3.6)

@ziligy
Copy link
Author

ziligy commented Feb 17, 2020 via email

@ziligy
Copy link
Author

ziligy commented Feb 17, 2020 via email

@divyanshu9
Copy link

error
I am getting this error.

@ziligy
Copy link
Author

ziligy commented Mar 9, 2020

Did you try more than once?

@ziligy
Copy link
Author

ziligy commented Mar 10, 2020 via email

@divyanshu9
Copy link

divyanshu9 commented Mar 10, 2020 via email

@ziligy
Copy link
Author

ziligy commented Mar 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment