-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdependencies.sh
More file actions
executable file
·52 lines (44 loc) · 1.26 KB
/
Copy pathdependencies.sh
File metadata and controls
executable file
·52 lines (44 loc) · 1.26 KB
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
#!/usr/bin/env bash
RED='\033[0;31m'
GREEN='\033[0;32m'
BLACK='\033[0;30m'
#Make sure Python 2.7 is installed.
function python_check() {
python_version=$(python --version 2>&1)
if [[ "$python_version" == *"Python 2.7."* ]]; then
echo -e "${GREEN}Python Check OK${BLACK}"
else
echo -e "${RED}Please install Python 2.7${BLACK}"
exit 1
fi
}
function postgres_check() {
postgres_installed=$(which psql)
if [[ "$postgres_installed" == "" ]]; then
echo -e "${RED}Please install Postgres${BLACK}"
exit 1
else
echo -e "${GREEN}Postgres Check OK ${BLACK}"
fi
}
python_check
postgres_check
echo -e "${GREEN}Updating pip...${BLACK}"
pip install --upgrade pip
echo -e "${GREEN}Installing Django Dependencies...${BLACK}"
pip install --upgrade Django
pip install --upgrade Djangorestframework
pip install --upgrade Django_facebook
pip install --upgrade django-cors-headers
pip install --upgrade Pillow
pip install --upgrade psycopg2
pip install --upgrade requests
pip install --upgrade django-picklefield
echo -e "${GREEN}Installing ML Dependencies...${BLACK}"
pip install --upgrade tensorflow
pip install --upgrade sklearn
pip install --upgrade scipy
pip install --upgrade numpy
pip install --upgrade BeautifulSoup
pip install --upgrade urllib3
pip install --upgrade six