-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·29 lines (24 loc) · 906 Bytes
/
setup.sh
File metadata and controls
executable file
·29 lines (24 loc) · 906 Bytes
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
MY_DIR="`python -c "import os; print(os.path.realpath('$1'))"`"
cd $MY_DIR
# if [ ! -d ".env" ]; then
# sh $MY_DIR/setup_python_env.sh 3.8 6 $MY_DIR .env
# fi
# . .env/bin/activate
virtualenv .env -p python3
source .env/bin/activate
# echo 'Create a virtual environment'
# python3 -m venv .env
# echo 'Activate the virtual environment'
# source .env/bin/activate
# echo 'Update the virtual environment'
# pip install -U pip setuptools wheel
echo "Installing other environments' dependencies.."
pip install -r environments/requirements.txt
# echo 'Fixing environments rendering'
# pip install pyglet==1.5.11 # fix for rendering environments
echo 'Installing XARL..'
pip install -e ./package # cmake is needed
# pip install ray[rllib]==1.2.0 aioredis==1.3.1
# echo 'Fixing environments rendering'
pip install pyglet==1.5.11 # fix for rendering environments
pip install opencv-python-headless==4.1.2.30