5 releases (2 stable)

✓ Uses Rust 2018 edition

2.1.0 Nov 30, 2019
2.0.2-beta Nov 29, 2019
1.0.0 Oct 11, 2019
0.1.0 Aug 21, 2019

#24 in Machine learning

38 downloads per month


422 lines


HitCount Crates.io Docs.rs license

OpenAI gym binding for Rust.

Actively maintained! If you have any problem just create an issue.


Just install the requierements layed out in the requirements.txt.

If you don't have python installed, go here

curl "https://raw.githubusercontent.com/MrRobb/gym-rs/master/requirements.txt" > requirements.txt
pip3 install -r requirements.txt


Once everything is installed, just add this crate to your your Rust project.

# Cargo.toml

gym = "*"

Then, to use it just do:

// main.rs

extern crate gym;
/* ... */


Once you have installed correctly the library, the only thing left is to test if its working ok. To do so, you just have to execute the following commands:

If you don't have Rust installed go here

git clone https://github.com/MrRobb/gym-rs.git
cd gym-rs
pip3 install -r requirements.txt
cargo run --example basic


~49K SLoC