Skip to content
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

Is there any way to run it with python2? #3

Open
wonchul-kim opened this issue Jan 29, 2018 · 1 comment
Open

Is there any way to run it with python2? #3

wonchul-kim opened this issue Jan 29, 2018 · 1 comment

Comments

@wonchul-kim
Copy link

I am using python2

and when i run it, this error came up:
DeepRL-PPO-tutorial-master$ python ppo.py
File "ppo.py", line 198
*step_losses, _ = tf.get_default_session().run([self.ent, self.vf_loss, self.pol_loss, self.update_op],feed_dict = {self.obs_place: traj["ob"][cur:cur+self.batch_size],
^
SyntaxError: invalid syntax

In order to run it under python2, what should i change ?

@leejames00
Copy link

python2 와 python3는 문법 자체가 달라서 어떤 특정한것을 바꾸는것보다
virtualenv 를 실행해서 python3 environment를 만든 후 그 안에서 실행하는 것을 추천드립니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants