forked from tmscarla/spotify-recsys-challenge
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup_ubuntu.sh
executable file
·59 lines (44 loc) · 1.62 KB
/
setup_ubuntu.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
#!/bin/bash
echo ""
echo ">>>>>>>>>>>>>>>>>> setup python <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
echo ""
export LC_ALL=C
alias python=python3
sudo apt-get update
sudo apt-get install python-pip
sudo apt-get install python3
sudo apt-get install gcc
sudo apt-get install libxml2-dev libxslt1-dev
sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap
sudo apt-get install python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel
sudo apt-get install python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2
sudo apt-get install python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
sudo apt-get install python3-dev
sudo apt-get install unzip
sudo apt-get install python3-tk
sudo apt install virtualenv
virtualenv -p /usr/bin/python3 py3e
sleep 1
source py3e/bin/activate
echo ""
echo ">>>>>>>>>>>>>>>>>> Installing Python packages <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
echo ""
sleep 1
pip3 install pandas scipy numpy cython matplotlib tqdm sklearn psutil nltk deap regex
pip3 install bayesian-optimization spotipy
echo ""
echo ">>>>>>>>>>>>>>>>>> Installing repository package <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
echo ""
sleep 1
python setup.py sdist
pip3 install -e .
echo ""
echo ">>>>>>>>>>>>>>>>>> Compiling Cython modules <<<<<<<<<<<<<<<<<<<<<<<<<<<"
echo ""
sleep 1
cd recommenders/similarity
python compileCython.py build_ext --inplace
cd ../..
echo ""
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>> Done <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
echo ""