-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.sh
executable file
·57 lines (37 loc) · 1.19 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Install script for crypto trading bot libraries
# Created on Sat Jan 9 09:56:48 2021
clear
echo "======================================================="
echo "========= Instantiating Virtual Environment ==========="
echo "======================================================="
read -r -p "This script will make changes to your system which may break some applications and may require you to reimage your SD card. Are you sure that you wish to continue? [y/N] " confirm
if ! [[ $confirm =~ ^([yY][eE][sS]|[yY])$ ]]
then
exit 1
fi
clear
echo "Installing dos2Unix"
sudo apt-get install dos2unix
echo ""
echo "Converting files to Unix"
dos2unix *.py
dos2unix *.md
dos2unix *.txt
echo ""
echo "Building virtual environment and installing Python libraries"
sudo apt install python3-pip
pip3 install virtualenv
virtualenv crypto
source crypto/bin/activate
sudo apt-get install libatlas-base-dev
pip3 install cbpro==1.1.4
pip3 install numpy==1.16.5
pip3 install pandas==0.25.1
echo "All relevant Python libraries installed"
chmod +x run_bot.py
echo "Script is now executable"
echo "First update parameters.py file"
echo "Then execute ./run_bot.py"
echo "You are a great American!!"
exit 0