You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please!! Support windows. I know I should have a dual boot linux distro, but I only have a little solid state. Adding a linux distro would cripple me... Long story short, it would be very convenient to have this available on windows!!
Thank you for all of your hard work thus far.
YidingYu, ViktorM, BlueMatrix007, jpzhangvincent, NaxAlpha and 6 more
I know a non-trivial number of people are currently using Gym on Windows. I think at this point, it mostly works (with the possible exception of Atari, though I think that too may be not too hard).
We don't have any Windows users at OpenAI currently. Is anyone on this thread interested in doing the work to get Gym fully supported on Windows (which mostly involves getting a CI service set up, and making sure our current functionality actually works there)? Happy to provide guidance.
Is this still an issue worth resolving? It looks like there was an attempt in #99 but it never really went anywhere. I'd be interested in getting this set up.
Alright, then! I'll start looking into it. I'm going to start by setting up a CI service somewhere. Let me know if there's anything else I should be looking into for this issue.
I've got OpenAI gym working on Windows 10 (at least CartPole). Preface: you need to run all the python commands as root because it does path look-ups differently by user.
Very rough instructions:
Update to the latest version of Windows (>version 1607, "Anniversary Update")
Enable Windows Subsystem for Linux (WSL)
Open cmd, run bash
Install python & gym (using sudo, and NOT PIP to install gym). So by now you should probably be able to run things and get really nasty graphics related errors. This is because WSL doesn't support any displays, so we need to fake it.
Install vcXsrv, and run it (you should just have a little tray icon)
In bash run "export DISPLAY=:0" Now when you run it you should get a display to pop-up, there may be issues related to graphics drivers. Sadly, this is where the instructions diverge if you don't have an NVIDIA graphics card.
Get the drivers: "sudo apt-get install nvidia-319 nvidia-settings-319 nvidia-prime"
Run!
Let me know if you have any questions or if I should do a detailed guide.
stray-leone, tangfucius, icoxfog417, peejaybee, Viliami and 31 moreAlexGatzennioguzman and ShawonAshraf
Just a heads-up for anyone not having Windows 10, I'm able to run the gym on Windows 7 using cygwin and ImageMagick, although I haven't tried the atari games yet. One issue though, the recording doesn't seem to work because of ffmpeg issues, but I assume this could be sorted after some investigation.
@maxosmith Thank you for nice tutorial to enable gym work on Windows! I succeeded to run gym on my Windows PC (bash on Windows/Python 3.5.2). pip install also works fine, below is my setup procedure.
tihomir-kit, Franck-Dernoncourt, GitMyCode, davidtellez, dbsxdbsx and 23 morenaruya and cxrsssWouterVanGoey, Faur, SoliareofAstora, JaeDukSeo, PabTorre and 3 more
windows only has 90% market share, it's no big deal...
TomWyllie, Franck-Dernoncourt, GitMyCode, tsdaemon, tongzou and 59 moreddugovic, dm-learn and CrasherXkmilych, mbednarski, wjxjmj, zhuzilin, yx3110 and 37 more
I got OpenAI gym to work in windows without BASH but installing the extra dependencies like 'atari' can't be done because they install it using the make command
erfannoury, lspinheiro, Franck-Dernoncourt, thblue, zimmerrol and 6 more
when trying to use gym I get error from file
gym\wrappers\monitoring\video_recorder.py", line 254, in init
raise error.DependencyNotInstalled("""Found neithethe ffmpeg nor avconv executables.
Is this because
elif distutils.spawn.find_executable('ffmpeg')
should look for ffmpeg.exe in Windows version?
Just ran successfully in Windows 10. Just follow the readme with the addition of installing the "Build Tools for Visual Studio 2019" from the following site.
I will accept PRs from the community for this, but almost everything should work for Windows and me and those helping maintain Gym don't have the ability to deal extend Gym to Windows ourselves. I'm going to close this issue for now.
Activity
andrewssobral commentedon Apr 28, 2016
True
steenblikrs commentedon May 15, 2016
Please!! Support windows. I know I should have a dual boot linux distro, but I only have a little solid state. Adding a linux distro would cripple me... Long story short, it would be very convenient to have this available on windows!!
Thank you for all of your hard work thus far.
gdb commentedon May 16, 2016
I know a non-trivial number of people are currently using Gym on Windows. I think at this point, it mostly works (with the possible exception of Atari, though I think that too may be not too hard).
We don't have any Windows users at OpenAI currently. Is anyone on this thread interested in doing the work to get Gym fully supported on Windows (which mostly involves getting a CI service set up, and making sure our current functionality actually works there)? Happy to provide guidance.
See also #99.
vrxacs commentedon Jun 21, 2016
Is this still an issue worth resolving? It looks like there was an attempt in #99 but it never really went anywhere. I'd be interested in getting this set up.
gdb commentedon Jun 21, 2016
Yep, definitely!
vrxacs commentedon Jun 22, 2016
Alright, then! I'll start looking into it. I'm going to start by setting up a CI service somewhere. Let me know if there's anything else I should be looking into for this issue.
quibsorg commentedon Aug 15, 2016
Any update on this?
maxosmith commentedon Aug 28, 2016
I've got OpenAI gym working on Windows 10 (at least CartPole). Preface: you need to run all the python commands as root because it does path look-ups differently by user.
Very rough instructions:
Let me know if you have any questions or if I should do a detailed guide.
lunzueta commentedon Aug 28, 2016
@maxosmith Good news! I have one question about this: why nvidia-319 and not a newer version?
lbandy commentedon Aug 28, 2016
Just a heads-up for anyone not having Windows 10, I'm able to run the gym on Windows 7 using cygwin and ImageMagick, although I haven't tried the atari games yet. One issue though, the recording doesn't seem to work because of ffmpeg issues, but I assume this could be sorted after some investigation.
maxosmith commentedon Aug 29, 2016
@lunzueta I knew it was a safe version for working with vcXsrv, I would imagine newer versions work.
icoxfog417 commentedon Sep 13, 2016
@maxosmith Thank you for nice tutorial to enable gym work on Windows! I succeeded to run gym on my Windows PC (bash on Windows/Python 3.5.2).
pip install
also works fine, below is my setup procedure.vcXsrv
on Windowspip install gym
pip install 'gym[atari]'
vcXsrv
Window (I recommend to reboot PC before it)export DISPLAY=:0
fedorzh commentedon Sep 21, 2016
After multiple hours of trial-and-error, this procedure worked for me from scratch, includes Jupyter:
Install Ubuntu (run in cmd) on Windows:
lxrun /uninstall /all
lxrun /install
Python and Jupyter (reference to microsoft/WSL#185 (comment)):
apt-get update
add-apt-repository ppa:aseering/wsl
apt-get update
apt-get install python-pip ipython ipython-notebook
pip install jupyter
jupyter notebook --no-browser
Gym:
apt-get install -y python-numpy python-dev cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev swig
pip install gym
pip install 'gym[atari]'
Graphics, I have Intel HD Graphics 4400, launch Xming first (vcXsrv didn't work!):
apt-get install mesa-utils
export DISPLAY=:0
Viliami commentedon Oct 1, 2016
windows only has 90% market share, it's no big deal...
Viliami commentedon Oct 2, 2016
I got OpenAI gym to work in windows without BASH but installing the extra dependencies like
'atari'
can't be done because they install it using themake
command85 remaining items
ph-dev-2016 commentedon Sep 22, 2018
when trying to use gym I get error from file
gym\wrappers\monitoring\video_recorder.py", line 254, in init
raise error.DependencyNotInstalled("""Found neithethe ffmpeg nor avconv executables.
Is this because
elif distutils.spawn.find_executable('ffmpeg')
should look for ffmpeg.exe in Windows version?
itegmark commentedon Apr 8, 2019
This instruction worked like charm: https://towardsdatascience.com/how-to-install-openai-gym-in-a-windows-environment-338969e24d30
NicoEssi commentedon Jun 19, 2019
Any update on how the Windows support is coming along? Been years now.
daniel-fudge commentedon Sep 2, 2019
Just ran successfully in Windows 10. Just follow the readme with the addition of installing the "Build Tools for Visual Studio 2019" from the following site.
https://visualstudio.microsoft.com/downloads/

I also found this by reading the following article.
https://towardsdatascience.com/how-to-install-openai-gym-in-a-windows-environment-338969e24d30
I think if the readme was updated with this reference, this issue could be closed.
leemorris commentedon Jan 12, 2020
@jamartinh - I needed to edit a file after installing Swig from here.
https://github.com/pybox2d/pybox2d/issues/106#issuecomment-535283336
jkterry1 commentedon Jul 30, 2021
I will accept PRs from the community for this, but almost everything should work for Windows and me and those helping maintain Gym don't have the ability to deal extend Gym to Windows ourselves. I'm going to close this issue for now.