Error following env.render() for OpenAI

我只是一个虾纸丫 提交于 2019-12-05 03:40:13
mGwork

I just resolved this (bug?), like 10 minutes ago :D

You have to downgrade pyglet 3 to pyglet 1.2.4. just type: pip install pyglet==1.2.4 in your anaconda prompt. Afterwards you might have to restart your spyder ide.

I would add env.close() to your code, otherwise you will have troubles closing the window.

if you are new to python/ML/DL have a look at "sentdex" on youtube. imo very good content to start with. (he uses TFlearn in his gym tutorial) But since tensorflow 1.4 has Keras included, i would suggest to use keras high lvl API for your neural network.

good luck and stay deep

if someone has a good gym documentation, feel free to share it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!