@@ -14,8 +14,11 @@ shell commands below to get started.
14
14
Dependencies
15
15
============
16
16
We begin by installing dependencies needed by the four repositories mentioned
17
- above. It will be useful to install `Anaconda <https://www.anaconda.com/download >`_
18
- for Python.
17
+ above. **It is highly recommended that users install
18
+ `Anaconda <https://www.anaconda.com/download>`_ or
19
+ `Miniconda <https://conda.io/miniconda.html>`_
20
+ for Python and the setup instructions will assume that you are
21
+ doing so. **
19
22
20
23
For Ubuntu 16.04:
21
24
::
38
41
Next, we install SUMO, an open source traffic microsimulator which will be used
39
42
the update the states of vehicles, traffic lights, and other RL and
40
43
human-driven agents during the simulation process.
44
+
41
45
::
42
46
43
47
cd ~
@@ -47,21 +51,33 @@ human-driven agents during the simulation process.
47
51
make -f Makefile.cvs
48
52
49
53
If you have OSX, run the following commands
54
+
50
55
::
56
+
51
57
export CPPFLAGS=-I/opt/X11/include
52
58
export LDFLAGS=-L/opt/X11/lib
59
+ ./configure CXX=clang++ CXXFLAGS="-stdlib=libc++ -std=gnu++11" --with-xerces=/usr/local --with-proj-gdal=/usr/local
60
+ make -j$nproc
61
+ echo 'export SUMO_HOME="$HOME/sumo"' >> ~/.bash_profile
62
+ echo 'export PATH="$HOME/sumo/bin:$PATH"' >> ~/.bash_profile
63
+ echo 'export PYTHONPATH="$HOME/sumo/tools:$PYTHONPATH"' >> ~/.bash_profile
64
+ source ~/.bashprofile
65
+
66
+ If you have Ubuntu 14.04+, run the following command
53
67
54
- Now for both OSX and linux run the following command
55
68
::
69
+
56
70
./configure
57
71
make -j$nproc
58
72
echo 'export SUMO_HOME="$HOME/sumo"' >> ~/.bashrc
59
73
echo 'export PATH="$HOME/sumo/bin:$PATH"' >> ~/.bashrc
60
74
echo 'export PYTHONPATH="$HOME/sumo/tools:$PYTHONPATH"' >> ~/.bashrc
61
75
source ~/.bashrc
62
76
63
- Test your sumo install and version by running the following commands
77
+ Finally, test your sumo install and version by running the following commands
78
+
64
79
::
80
+
65
81
which sumo
66
82
sumo --version
67
83
sumo-gui
@@ -79,10 +95,19 @@ Ray/RLlib for more).
79
95
cd ~
80
96
git clone https://github.com/flow-project/flow.git
81
97
cd flow
98
+ conda env create -f environment.yml
99
+ source activate flow
82
100
python3 setup.py develop
101
+
102
+ For linux run
103
+ ::
83
104
echo 'export PYTHONPATH="$HOME/flow:$PYTHONPATH"' >> ~/.bashrc
84
105
source ~/.bashrc
85
106
107
+ For mac run
108
+ ::
109
+ echo 'export PYTHONPATH="$HOME/flow:$PYTHONPATH"' >> ~/.bash_profile
110
+ source ~/.bash_profile
86
111
87
112
Testing the Installation
88
113
========================
@@ -121,9 +146,17 @@ to install the `rllab-multiagent` library, follow the below instructions
121
146
cd rllab-multiagent
122
147
conda env create -f environment.yml
123
148
python3 setup.py develop
149
+
150
+ For linux run
151
+ ::
124
152
echo 'export PYTHONPATH="$HOME/rllab-multiagent:$PYTHONPATH"' >> ~/.bashrc
125
153
source ~/.bashrc
126
154
155
+ For mac run
156
+ ::
157
+ echo 'export PYTHONPATH="$HOME/rllab-multiagent:$PYTHONPATH"' >> ~/.bash_profile
158
+ source ~/.bash_profile
159
+
127
160
Ray/RLlib (optional)
128
161
====================
129
162
RLlib is another RL library that has been extensively tested on the Flow
@@ -150,7 +183,7 @@ Getting started (rllab-multiagent)
150
183
To run any of the RL examples, make sure to run
151
184
::
152
185
153
- source activate flow-rllab
186
+ source activate flow
154
187
155
188
In order to test run an Flow experiment in rllab-multiagent, try the following
156
189
command:
@@ -167,6 +200,11 @@ Getting started (Ray/RLlib)
167
200
168
201
See `getting started with RLlib <http://ray.readthedocs.io/en/latest/rllib.html#getting-started >`_ for sample commands.
169
202
203
+ To run any of the RL examples, make sure to run
204
+ ::
205
+
206
+ source activate flow
207
+
170
208
In order to test run an Flow experiment in RLlib, try the following command:
171
209
::
172
210
0 commit comments