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
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With