Giter Site home page Giter Site logo

tranlethaison / atari-py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rybskej/atari-py

0.0 1.0 0.0 1.14 MB

A packaged and slightly-modified version of https://github.com/bbitmaster/ale_python_interface

License: GNU General Public License v2.0

Makefile 0.24% Python 0.45% C++ 69.81% C 4.47% CMake 0.19% Shell 0.01% M4 1.47% TeX 5.43% Prolog 17.93%

atari-py's Introduction

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

atari-py's People

Contributors

bquast avatar gdb avatar jonasschneider avatar joschu avatar rybskej avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.