forked from spragunr/deep_q_rl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dep_script.sh
executable file
·52 lines (40 loc) · 1.23 KB
/
dep_script.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
#!/bin/bash
echo "==>dependencies setup for deep_q_rl"
echo "==>updating current package..."
sudo apt-get update
echo "==>installing OpenCV..."
sudo apt-get install python-opencv
echo "==>installing Matplotlib..."
sudo apt-get install python-matplotlib python-tk
echo "==>installing Theano ..."
# some dependencies ...
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git
pip install --user --upgrade --no-deps git+git://github.com/Theano/Theano.git
echo "==>installing Lasagne ..."
pip install --user --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip
# Packages below this point require downloads.
mkdir build
cd build
if [ ! -d "./pylearn2" ]
then
echo "==>installing Pylearn2 ..."
# dependencies...
sudo apt-get install libyaml-0-2 python-six
git clone git://github.com/lisa-lab/pylearn2
fi
cd ./pylearn2
python setup.py develop --user
cd ..
if [ ! -d "./ALE" ]
then
echo "==>installing ALE ..."
# dependencies ...
sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev cmake
git clone https://github.com/mgbellemare/Arcade-Learning-Environment ALE
cd ./ALE
cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF .
make -j2
pip install --user .
cd ..
fi
echo "==>All done!"