-
Notifications
You must be signed in to change notification settings - Fork 57
/
openai.sh
executable file
·57 lines (44 loc) · 1.17 KB
/
openai.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
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "############################"
echo "# OpenAI gym, universe, and universe-starter-agent"
echo "############################"
echo ""
echo "OpenAI https://github.com/openai."
sudo apt-get update
pip install numpy
sudo apt-get install -y golang libjpeg-turbo8-dev make
sudo apt-get install -y python-numpy python-dev python3-dev cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev swig
cd ~/src
mkdir -p openai
# install https://github.com/openai/gym
cd ~/src/openai
if [ ! -d ~/src/openai/gym ]
then
git clone https://github.com/openai/gym.git
fi
cd gym
git pull
pip install -e '.[all]'
# install https://github.com/openai/universe
cd ~/src/openai
if [ ! -d ~/src/openai/universe ]
then
git clone https://github.com/openai/universe.git
fi
cd universe
git pull
pip install -e .
# install https://github.com/openai/universe-starter-agent.git
cd ~/src/openai
if [ ! -d ~/src/openai/universe-starter-agent ]
then
git clone https://github.com/openai/universe-starter-agent.git
fi
cd universe-starter-agent
git pull
cd $DIR