Skip to content

Instantly share code, notes, and snippets.

@nafeesb
Created November 21, 2018 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nafeesb/ddd02eaa3585844f91a9b8371d043c0d to your computer and use it in GitHub Desktop.
Save nafeesb/ddd02eaa3585844f91a9b8371d043c0d to your computer and use it in GitHub Desktop.
Installing OpenAI Gym in Windows

Anaconda Configuration

conda create -n tensorflow tensorflow-gpu pip python=3.6
conda install ipython matplotlib cython mkl_random mkl mkl-devel swig

Install OpenAI Gym

Install from source: https://github.com/openai/gym

pip install -e .

Install Optional Modules

pip install box2d-py
pip install git+https://github.com/Kojoley/atari-py.git

Test Box2D

python gym\envs\box2d\bipedal_walker.py

Test Atari

import gym
env = gym.make('SpaceInvaders-v0')
env.reset()
for _ in range(1000):
    env.step(env.action_space.sample())
    env.render('human')
env.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment