DeepRL-PPO-tutorial icon indicating copy to clipboard operation
DeepRL-PPO-tutorial copied to clipboard

Is there any way to run it with python2?

Open wonchul-kim opened this issue 7 years ago • 1 comments

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 ?

wonchul-kim avatar Jan 29 '18 04:01 wonchul-kim

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

leejames00 avatar Jul 16 '18 07:07 leejames00