Skip to content

rybskej/atari-py

 
 

Repository files navigation

atari_py

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.

Installation

  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

Releases

No releases published

Packages

 
 
 

Languages

  • C++ 69.9%
  • Prolog 17.9%
  • TeX 5.4%
  • C 4.5%
  • M4 1.5%
  • Python 0.4%
  • Other 0.4%