Python3 wrapper for running multiple OpenAI Gym environments in parallel
All the code is from OpenAI Baselines Repository
The parallel environment functionality was the only reason I used Baselines, but installing it requires resolving MuJoCo, mujoco-py and various other dependencies which is troublesome. Hence, I repackaged the required functionality into another package which is very easy to install and exposes the same API
Requirements (resolved automatically during installation):
Python 3OpenAI GymCloudpicklenumpy
Installation: Easiest way is to do pip install gym_vecenv
If you want to build from source,
- Clone this repository
cd gym_vecenvpip install -e .
Usage:
-
import gym_vecenvand then callgym_vecenv.SubprocVecEnvorgym_vecenv.DummyVecEnvin your code -
from gym_vecenv import SubprocVecEnv, DummyVecEnvetc.