Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python openAI retro module

I am trying to use the retro module and I jupyter notebooks I seemed to install it with a !pip install retro where it went thru the download/install ok.

But when I try to import retro I get an error

`

Traceback (most recent call last):

  File "/home/benbartling/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2963, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-1-81066d3a41c5>", line 1, in <module>
    import retro

  File "/home/benbartling/anaconda3/lib/python3.6/site-packages/retro/__init__.py", line 206
    print "%s: %s" % (key, value)
                 ^
SyntaxError: invalid syntax

Would anyone have any ideas? Thank you

like image 641
bbartling Avatar asked Sep 04 '18 20:09

bbartling


1 Answers

I believe you installed the wrong retro? That retro you installed seems to be this, which seems to be a toolkit for developing web apps and is most likely not ported to python3.+ hence failing at SyntaxError for the print statement. The openAI retro you were looking for is here and the installation command is pip3 install gym-retro.

like image 135
Kevin He Avatar answered Oct 03 '22 08:10

Kevin He