Last active
August 12, 2021 18:32
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 --------------------------------------------------------- |
Curl installed?
sudo apt install curl
What versions
… On Feb 17, 2020, at 4:18 PM, Etienne BLANC ***@***.***> wrote:
Error on tensorflow installing.... :'(
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <https://gist.github.com/7a11517635d527c5492706986dd5bf75?email_source=notifications&email_token=AABE5UNB3N5G4UVD7XUH6BLRDL5KFA5CNFSM4KWYVQ3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGCDF2#gistcomment-3180125>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABE5UKPCOI6PSIZD2LOKJLRDL5KFANCNFSM4KWYVQ3A>.
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.
Ahh, I only test on raspian
Python version on your system?
… On Feb 17, 2020, at 4:42 PM, Etienne BLANC ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <https://gist.github.com/7a11517635d527c5492706986dd5bf75?email_source=notifications&email_token=AABE5UPEC4PTL7KPBR5LWKLRDMAD5A5CNFSM4KWYVQ3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGCDIA#gistcomment-3180160>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABE5UOAYWKACVNYWDM3UMTRDMAD5ANCNFSM4KWYVQ3A>.
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)
In think this pip (.whl) version MAY?? Work for you. IF you can upgrade to Python 3.7
https://github.com/PINTO0309/TensorflowLite-bin/blob/master/1.15.0-rc3/tflite_runtime-1.15.0rc3-cp37-cp37m-linux_aarch64.whl
The CP37 in the file filename references the python version Python 3.7
The linux_aarch64 is for arm based ubuntu…i think :)
… On Feb 17, 2020, at 5:01 PM, Etienne BLANC ***@***.***> wrote:
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)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <https://gist.github.com/7a11517635d527c5492706986dd5bf75?email_source=notifications&email_token=AABE5UI2EXTG62WSZLF6NPLRDMCKTA5CNFSM4KWYVQ3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGCDJ2#gistcomment-3180189>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABE5UNIP3KLNEL2UTVK7ELRDMCKTANCNFSM4KWYVQ3A>.
For Python 3.7
Download the https://github.com/PINTO0309/TensorflowLite-bin/blob/master/1.15.0-rc3/tflite_runtime-1.15.0rc3-cp37-cp37m-linux_aarch64.whl <https://github.com/PINTO0309/TensorflowLite-bin/blob/master/1.15.0-rc3/tflite_runtime-1.15.0rc3-cp37-cp37m-linux_aarch64.whl> file then use:
sudo pip3 install tflite_runtime-1.15.0rc3-cp37-cp37m-linux_aarch64.whl
… On Feb 17, 2020, at 5:01 PM, Etienne BLANC ***@***.***> wrote:
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)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <https://gist.github.com/7a11517635d527c5492706986dd5bf75?email_source=notifications&email_token=AABE5UI2EXTG62WSZLF6NPLRDMCKTA5CNFSM4KWYVQ3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGCDJ2#gistcomment-3180189>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABE5UNIP3KLNEL2UTVK7ELRDMCKTANCNFSM4KWYVQ3A>.
Did you try more than once?
Try:
sudo pip install h5py --no-cache-dir
Then run the install_rasa_on_pi.sh again
… On Feb 17, 2020, at 5:01 PM, Etienne BLANC ***@***.***> wrote:
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)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <https://gist.github.com/7a11517635d527c5492706986dd5bf75?email_source=notifications&email_token=AABE5UI2EXTG62WSZLF6NPLRDMCKTA5CNFSM4KWYVQ3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGCDJ2#gistcomment-3180189>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABE5UNIP3KLNEL2UTVK7ELRDMCKTANCNFSM4KWYVQ3A>.
Ya got it installed after several retries. Thanks
…On Tuesday, March 10, 2020, jeff greenberg ***@***.***> wrote:
Did you try more than once?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/7a11517635d527c5492706986dd5bf75?email_source=notifications&email_token=AEFVBCM7REDF3XPHK7LB4DDRGV5S3A5CNFSM4KWYVQ3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGDV2O#gistcomment-3206055>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEFVBCJU4IQQV2G2NOY3LGLRGV5S3ANCNFSM4KWYVQ3A>
.
👍🏼
… On Mar 9, 2020, at 8:16 PM, Divyanshu Mishra ***@***.***> wrote:
Ya got it installed after several retries. Thanks
On Tuesday, March 10, 2020, jeff greenberg ***@***.***> wrote:
> Did you try more than once?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/7a11517635d527c5492706986dd5bf75?email_source=notifications&email_token=AEFVBCM7REDF3XPHK7LB4DDRGV5S3A5CNFSM4KWYVQ3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGDV2O#gistcomment-3206055>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AEFVBCJU4IQQV2G2NOY3LGLRGV5S3ANCNFSM4KWYVQ3A>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <https://gist.github.com/7a11517635d527c5492706986dd5bf75?email_source=notifications&email_token=AABE5UOXH6G44WSYNMTU2D3RGWBGLA5CNFSM4KWYVQ3KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGDV5E#gistcomment-3206098>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABE5ULE7X325BDHUUZ6MJLRGWBGLANCNFSM4KWYVQ3A>.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error on tensorflow installing.... :'(