Skip to content

1. Install

Zackory Erickson edited this page Dec 11, 2020 · 4 revisions

Basic install (if you just want to use existing environments without changing them)

pip3 install --upgrade pip
pip3 install git+https://github.com/Healthcare-Robotics/assistive-gym.git

We recommend using Python 3.6 (although other Python 3.x versions may still work). You can either download Python 3.6 here, or use pyenv to install Python 3.6 in a local directory, e.g. pyenv install 3.6.5; pyenv local 3.6.5

Full installation (to edit/create environments) using a python virtual environment

We encourage installing Assistive Gym in a python virtualenv.
NOTE: If you are not using a python virtual environment, you can replace pip3 with python3 -m pip install for easier installations.

python3 -m pip install virtualenv
python3 -m venv env
source env/bin/activate
pip3 install --upgrade pip
git clone https://github.com/Healthcare-Robotics/assistive-gym.git
cd assistive-gym
pip3 install -e .

Once Assistive Gym is installed, you can test out various Assistive Gym environments. A full list of all environments provided in Assistive Gym can be found Here.

python3 -m assistive_gym --env "FeedingJaco-v1"

Google Colab

Open In Colab
Assistive Gym is fully supported in Google Colab (online Python Jupyter notebook). Click on the link above for an example. Everything runs online, so you won't need to install anything on your local machine!

All of the available Google Colab examples are listed on the Wiki-Google Colab.

Installing on Windows

  1. Install Python 3.6.8 at: https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe
  2. Install git: https://git-scm.com/download/win
  3. Install Microsoft visual c++ build tools: https://www.microsoft.com/en-us/download/details.aspx?id=48159
  4. Install c++ build tools for visual studio: https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
    -- during installation, click on the "C++ build tools" checkbox.

Then, run the following commands in a command prompt

mkdir git
cd git
python -m pip install --user virtualenv
python -m venv env
env\Scripts\activate
pip install --upgrade setuptools pip
git clone https://github.com/Healthcare-Robotics/assistive-gym.git
cd assistive-gym
pip install -e .