@@ -14,8 +14,11 @@ shell commands below to get started.
1414Dependencies
1515============
1616We 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. **
1922
2023For Ubuntu 16.04:
2124::
3841Next, we install SUMO, an open source traffic microsimulator which will be used
3942the update the states of vehicles, traffic lights, and other RL and
4043human-driven agents during the simulation process.
44+
4145::
4246
4347 cd ~
@@ -47,21 +51,33 @@ human-driven agents during the simulation process.
4751 make -f Makefile.cvs
4852
4953If you have OSX, run the following commands
54+
5055::
56+
5157 export CPPFLAGS=-I/opt/X11/include
5258 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
5367
54- Now for both OSX and linux run the following command
5568::
69+
5670 ./configure
5771 make -j$nproc
5872 echo 'export SUMO_HOME="$HOME/sumo"' >> ~/.bashrc
5973 echo 'export PATH="$HOME/sumo/bin:$PATH"' >> ~/.bashrc
6074 echo 'export PYTHONPATH="$HOME/sumo/tools:$PYTHONPATH"' >> ~/.bashrc
6175 source ~/.bashrc
6276
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+
6479::
80+
6581 which sumo
6682 sumo --version
6783 sumo-gui
@@ -79,10 +95,19 @@ Ray/RLlib for more).
7995 cd ~
8096 git clone https://github.com/flow-project/flow.git
8197 cd flow
98+ conda env create -f environment.yml
99+ source activate flow
82100 python3 setup.py develop
101+
102+ For linux run
103+ ::
83104 echo 'export PYTHONPATH="$HOME/flow:$PYTHONPATH"' >> ~/.bashrc
84105 source ~/.bashrc
85106
107+ For mac run
108+ ::
109+ echo 'export PYTHONPATH="$HOME/flow:$PYTHONPATH"' >> ~/.bash_profile
110+ source ~/.bash_profile
86111
87112Testing the Installation
88113========================
@@ -121,9 +146,17 @@ to install the `rllab-multiagent` library, follow the below instructions
121146 cd rllab-multiagent
122147 conda env create -f environment.yml
123148 python3 setup.py develop
149+
150+ For linux run
151+ ::
124152 echo 'export PYTHONPATH="$HOME/rllab-multiagent:$PYTHONPATH"' >> ~/.bashrc
125153 source ~/.bashrc
126154
155+ For mac run
156+ ::
157+ echo 'export PYTHONPATH="$HOME/rllab-multiagent:$PYTHONPATH"' >> ~/.bash_profile
158+ source ~/.bash_profile
159+
127160Ray/RLlib (optional)
128161====================
129162RLlib is another RL library that has been extensively tested on the Flow
@@ -150,7 +183,7 @@ Getting started (rllab-multiagent)
150183To run any of the RL examples, make sure to run
151184::
152185
153- source activate flow-rllab
186+ source activate flow
154187
155188In order to test run an Flow experiment in rllab-multiagent, try the following
156189command:
@@ -167,6 +200,11 @@ Getting started (Ray/RLlib)
167200
168201See `getting started with RLlib <http://ray.readthedocs.io/en/latest/rllib.html#getting-started >`_ for sample commands.
169202
203+ To run any of the RL examples, make sure to run
204+ ::
205+
206+ source activate flow
207+
170208In order to test run an Flow experiment in RLlib, try the following command:
171209::
172210
0 commit comments