-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows support #11
Comments
True |
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. |
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. |
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. |
Yep, definitely! |
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. |
Any update on this? |
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. |
@maxosmith Good news! I have one question about this: why nvidia-319 and not a newer version? |
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. |
@lunzueta I knew it was a safe version for working with vcXsrv, I would imagine newer versions work. |
@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).
import gym
if __name__ == "__main__":
env = gym.make("SpaceInvaders-v0")
env.reset()
for _ in range(1000):
env.render()
env.step(env.action_space.sample()) |
After multiple hours of trial-and-error, this procedure worked for me from scratch, includes Jupyter: Install Ubuntu (run in cmd) on Windows: Python and Jupyter (reference to microsoft/WSL#185 (comment)): Gym: Graphics, I have Intel HD Graphics 4400, launch Xming first (vcXsrv didn't work!): |
windows only has 90% market share, it's no big deal... |
I got OpenAI gym to work in windows without BASH but installing the extra dependencies like |
@Viliami Could you give detail on how you got OpenAI gym working without BASH? |
It's fascinating that I haven't been able to run even the cartpole on either a fresh install of the latest ubuntu on the hardware or in a vm, but the whole "ubuntu on windows" thing work flawlessly after the first try... :D thanks for the setup instructions @maxosmith @icoxfog417 ! |
I've gotten atari_py to build and install on Windows 7 x86_64, using msys2/mingw64 for the compiler tools, Python 3.5 Anaconda, Xming for graphics, and TensorFlow 0.12.0 + CUDA GPU enabled. For simplicity, I've forked this project with relatively minor changes applied and full install instructions included: https://github.com/rybskej/atari-py It should be possible to merge these changes back into this project, with minor edits. I'll try to work on a portable patch. |
@rybskej you are my hero! I followed your instructions in https://github.com/rybskej/atari-py and I can finally render Atari games in Windows 10 (no WSL bash): python 3.5 Anaconda, Xming, TensorFlow 0.12.0 + CUDA GPU and PyCharm :) It would be very interesting to merge the changes back, since many more people could benefit from it. I also tested Ubuntu bash under Windows 10 WSL following @icoxfog417 instructions and it works using Xming, as suggested by @fedorzh. |
Hi David,
Awesome to hear it worked out for you! I suspect the MSYS2 environment
approach can help other Linux-only TF projects be more rapidly ported to
Windows. Especially now that TF officially supports Windows.
Time permitting, I'll definitely put together a patch proposal to ported
changes back to the main branch.
Regards,
Eric
…On Tue, Jan 3, 2017 at 9:13 PM, David Tellez ***@***.***> wrote:
@rybskej <https://github.com/rybskej> you are my hero! I followed your
instructions in https://github.com/rybskej/atari-py and I can finally
render Atari games in Windows 10 (no WSL bash): python 3.5 Anaconda, Xming,
TensorFlow 0.12.0 + CUDA GPU and PyCharm :) It would be very interesting to
merge the changes back, since many more people could benefit from it.
I also tested Ubuntu bash under Windows 10 WSL following @icoxfog417
<https://github.com/icoxfog417> instructions and it works using Xming, as
suggested by @fedorzh <https://github.com/fedorzh>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AV-Uf5wIdzjFEP7YLYM1rePX7Io-I5GWks5rOwBYgaJpZM4IRrZS>
.
|
@rybskej Crystal clear instructions and it just works! Thanks a lot! Win7 x64, python 3.5 |
Was able to get VcXsrv to work with Bash on Windows 10 (Dell Latitude 6220), python 2.7.6 by install the
Best of luck. |
I have opend a PR openai/atari-py#7 but I am asking here for help in testing it out. |
@edupard I have pushed a fix, but I am afraid that package you have provided link to is suitable only for mingw/cygwin (it requires |
@Kojoley Can you please tell exact package i have to use? |
@edupard If you use mingw as compiler for python - you can use one you have provided. Otherwise you have to compile it by yourself from official site. (I have not done conda support yet) |
@rybskej I was initially having problems building with |
I got rid of zlib depency completely, so except the need of compiler it is now simply as typing |
This was such as useful thread. |
It seems that pyglet==1.2.4 is required instead of the current 1.3? |
If you are talking about this |
I am on python36, I had to downgrade to pyglet==1.2.4 |
I'm on python 3.6.4 and I got an error when running Anyone got the same? |
Me.
El 21 mar. 2018 0:02, "Antonio Verdone" <[email protected]> escribió:
I'm on python 3.6.4 and I got an error: *Failed building wheel for
Box2D-kengz*.
Anyone got the same?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADbWs5gJkGhSYwZvzAvwEPAD_tUZFbG2ks5tgYqWgaJpZM4IRrZS>
.
|
Do you know how to fix it @jamartinh? I followed @aywi instructions and I could do |
Nop, I just dont use that environments. All the rest works well installing
them 1 by 1.
El jue., 22 mar. 2018 17:39, Antonio Verdone <[email protected]>
escribió:
… Do you know how to fix it @jamartinh <https://github.com/jamartinh>?
I followed @aywi <https://github.com/aywi> instructions and I could do pip
install gym, but not pip install gym[all].
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADbWs1E7_Cci0X-gC6jPXXoMVBY-ML3Cks5tg9OlgaJpZM4IRrZS>
.
|
Greetings, What is the long range strategy for windows support? Thanks, coast |
@jamartinh , I faced the same issue and apparently get resolved when following instructions at https://github.com/j8lp/atari-py. |
@jamartinh , I found the same error with Box2D-kengz while installing Box2d on Windows 10. I just went to http://www.swig.org/download.html, downloaded the zip file, unzipped it, changed windows PATH environmental to include swig.exe, then installed Box2D again and it seems to be working: import gym |
Oh, thanks!
El lun., 9 jul. 2018 6:02, ivenzor <[email protected]> escribió:
… @jamartinh <https://github.com/jamartinh> , I found the same error with
Box2D-kengz while installing Box2d on Windows 10. I just went to
http://www.swig.org/download.html, downloaded the zip file, unzipped it,
changed windows PATH environmental to include swig.exe, then installed
Box2D again and it seems to be working:
import gym
env = gym.make('LunarLander-v2')
env.reset()
for _ in range(1000):
env.render()
env.step(env.action_space.sample())
[image: box2d]
<https://user-images.githubusercontent.com/11284409/42430107-c6635804-8302-11e8-8716-b1cef749622b.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADbWs-L0lj0LXanl_MetaSImtd_-ZnOmks5uEtW7gaJpZM4IRrZS>
.
|
Let me say that given the OpenAI mission (and the reasons behind the gym toolkit) the lack of official support for the most widespread OS on the planet is pretty puzzling. |
when trying to use gym I get error from file Is this because |
I would like to share how I got it working on Windows 10: First I enabled & installed Windows Subsystem for Linux. I went ahead and installed entire Later I installed anaconda followed by NOTE: I've skipped some things like pip refusing to install gym because of some permission error etc. I resolved it but I think that wasn't a generic error. If anyone is trying and facing any error, do report. I will share the solutions. |
This instruction worked like charm: https://towardsdatascience.com/how-to-install-openai-gym-in-a-windows-environment-338969e24d30 |
Any update on how the Windows support is coming along? Been years now. |
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. I think if the readme was updated with this reference, this issue could be closed. |
@jamartinh - I needed to edit a file after installing Swig from here. https://github.com/pybox2d/pybox2d/issues/106#issuecomment-535283336 |
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. |
It would be nice if you could add support for Windows.
The text was updated successfully, but these errors were encountered: