gym_vecenv
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 3
OpenAI Gym
Cloudpickle
numpy
Installation: Easiest way is to do pip3 install gym_vecenv
If you want to build from source,
- Clone this repository
cd gym_vecenv
pip install -e .
Usage:
-
import gym_vecenv
and then callgym_vecenv.SubprocVecEnv
orgym_vecenv.DummyVecEnv
in your code -
from gym_vecenv import SubprocVecEnv, DummyVecEnv
etc.