-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSetup.sh
31 lines (25 loc) · 1.09 KB
/
Setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
FMSG="- Tensorflow 2.0 AllDS2020 CNN For Raspberry Pi 4 installation terminated"
read -p "? This script will install the Tensorflow 2.0 AllDS2020 CNN For Raspberry Pi 4 required Python libraries and Tensorflow on your device. Are you ready (y/n)? " cmsg
if [ "$cmsg" = "Y" -o "$cmsg" = "y" ]; then
echo "- Installing required Python libraries and Tensorflow"
sudo apt-get update
sudo apt-get upgrade
sudo pip3 install psutil
sudo pip3 install requests
sudo pip3 install numpy
sudo pip3 install jsonpickle
sudo pip3 install flask
sudo pip3 install paho-mqtt
sudo apt-get install gfortran
sudo apt-get install libhdf5-dev libc-ares-dev libeigen3-dev
sudo apt-get install libatlas-base-dev libopenblas-dev libblas-dev
sudo apt-get install liblapack-dev cython
sudo pip3 install pybind11
sudo pip3 install h5py
wget https://github.com/Qengineering/Tensorflow-Raspberry-Pi/raw/master/tensorflow-2.1.0-cp37-cp37m-linux_armv7l.whl
sudo -H pip3 install tensorflow-2.1.0-cp37-cp37m-linux_armv7l.whl
else
echo $FMSG;
exit
fi