###### windows运行gym出现get_screens NotImplementedError: abstract

https://stackoverflow.com/questions/47615458/error-following-env-render-for-openai

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.

• Thank you so much! I can't wait to try this soon. Also thank you for the recommendation. I will make sure to look at those YouTube videos. Also i will make sure to update my response whether or not this works but I'm hopeful. Thanks again! – MikeDoho Dec 3 '17 at 19:09
• So it worked! Thanks again! No error after running. I just need to find out where the screen is suppose to pop up. I would add my code but I cant get it to format well but I ran the same code as I did original (after making your changes) and I got [2017-12-03 14:34:17,063] Making new env: CartPole-v0 without any errors. – MikeDoho Dec 3 '17 at 19:36
• env.render(close = True) closes the window. Most likely it pops up and closes again (in your code). Just comment it out and you will see the window. – mGwork Dec 3 '17 at 21:35
• Awesome I'll give this a try too! By the way how do you find all these fixes out? Is there a way that I can systematically go through the code to determine things I should look up? Again I'm very new at this. I can't thank you enough for your advice so far. My strategy currently is copy and paste the error into Google and Explorer links. – MikeDoho Dec 3 '17 at 21:41
• I tried to comment out the code as you suggested import gym env = gym.make("CartPole-v0") env.reset() leaving me with what I pasted but it didnt work. That is ok though. I will toy with it somemore. thanks – MikeDoho Dec 4 '17 at 3:08

#### Gym小记（六）

2017-10-31 14:52:09

#### python第六课

2018-01-31 17:20:44

#### Python2.x与3.x的区别

2018-03-16 09:35:14

#### Semantic Segmentation--ICNet for Real-Time Semantic Segmentation on High-Resolution Images论文解读

2018-01-17 19:44:53

#### 【Python开发】Python中的class继承

2016-09-24 20:08:04

#### Gym 100917 A. Abstract Picture

2016-03-27 15:24:47

#### 一个Python程序员的进化

2014-06-24 08:23:09

#### python 系统学习笔记（十）---类

2013-09-27 16:14:51

#### Python程序员的进化过程

2015-06-17 14:36:18

#### Python3.x和Python2.x的区别

2012-12-29 09:51:37

## 不良信息举报

windows运行gym出现get_screens NotImplementedError: abstract