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.
-
Install MSYS2 and follow post-install instructions: https://msys2.github.io/
-
Install MSYS2 packages (via MSYS terminal):
pacman -S base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake
- 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
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
- Install atari-py and OpenAI Gym
git clone https://github.com/j8lp/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"
- 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()
If you get a crypto error in step 2, try running the following commands in the msys2 terminal:
pacman-key --init
pacman-key --populate