A packaged and slightly-modified version of https://github.com/bbitmaster/ale_python_interface
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead, 30 commits behind openai:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.



Build Status

A Windows-MSYS2-MinGW compatible version of https://github.com/openai/ale_python_interface.

This has been tested on Windows 7 64-bit. It will likely work on Windows XP or later.


  1. Install MSYS2 and follow post-install instructions: https://msys2.github.io/

  2. Install MSYS2 packages (via MSYS terminal):

pacman -S base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake

  1. Append to current Windows User PATH: ";C:\msys64\mingw64\bin;C:\msys64\usr\bin"

i.e. Start->right-click Computer->Properties->Advanced System Settings->Environment Variables->edit User variables PATH

  1. Install Xming: [https://sourceforge.net/projects/xming/])(https://sourceforge.net/projects/xming/)

Then add a new windows PATH variable (same method as #3): Name=DISPLAY, Value=:0

Or just remember to set it in your cmd.exe environment before running python:

set DISPLAY=:0

  1. Install atari-py and OpenAI Gym

git clone https://github.com/rybskej/atari-py

cd atari-py && make && python setup.py install && pip install "gym[atari]"

You can also just build the C++ code via make, and then add this repo to your PYTHONPATH before running python:

set PYTHONPATH="C:\path\to\atari-py:$PYTHONPATH"

  1. Test install (OpenAI Gym and then atari_py)
    C:\> python
    >>> import gym
    >>> env = gym.make('CartPole-v0')
    [2016-12-22 01:26:25,161] Making new env: CartPole-v0
    >>> env.reset()
    >>> env.render()
    >>> env = gym.make('Pong-v0')
    [2016-12-22 01:26:31,161] Making new env: Pong-v0
    >>> env.reset()
    >>> env.render()

Common issues