Skip to main content

This package allows to use PLE as a gym environment.

Project description


PyGame Learning Environment (PLE) is a learning environment, mimicking the Arcade Learning Environment interface, allowing a quick start to Reinforcement Learning in Python.
The goal of PLE is allow practitioners to focus design of models and experiments instead of environment design.
This package allows to use PLE as a gym environment.

Installing everything
gym_ple requires PLE, to install PLE clone the repo and install with pip.

.. code:: shell

git clone
cd PyGame-Learning-Environment/
pip install -e .

PLE requires PyGame installed:


.. code:: shell

brew install sdl sdl_ttf sdl_image sdl_mixer portmidi # brew or use equivalent means
conda install -c tlatorre pygame=1.9.2 # using Anaconda

On Ubuntu 14.04:

.. code:: shell

apt-get install -y python-pygame

More configurations and installation details on:

And finally clone and install this package

.. code:: shell

git clone
cd gym-ple/
pip install -e .


Run ``python`` file to play a PLE game (flappybird) with a random_agent (you need to have installed openai gym).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gym_ple, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size gym_ple-0.1.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page