forked from bbrito/gym-collision-avoidance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·43 lines (34 loc) · 984 Bytes
/
install.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
#!/bin/bash
set -e
MAKE_VENV=${1:-true}
SOURCE_VENV=${2:-true}
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if $MAKE_VENV; then
# Virtualenv w/ python3
export PYTHONPATH=/usr/bin/python3.6 # point to your python3
python3.6 -m pip install virtualenv
cd $DIR
virtualenv -p python3.6 venv
fi
if $SOURCE_VENV; then
cd $DIR
source venv/bin/activate
export PYTHONPATH=${DIR}/venv/bin/python/dist-packages
fi
# Install this pkg and its requirements
python -m pip install -r $DIR/requirements.txt
python -m pip install -e $DIR
# Install RVO and its requirements
cd $DIR/gym_collision_avoidance/envs/policies/Python-RVO2
python -m pip install Cython
if [[ "$OSTYPE" == "darwin"* ]]; then
export MACOSX_DEPLOYMENT_TARGET=10.15
brew install cmake
fi
python setup.py build
python setup.py install
# Install DRL Long's requirements
python -m pip install torch torchvision
# install python3-tk
# install ffmpeg