smilesun / rlR

Deep Reinforcement Learning in R (Deep Q Learning, Policy Gradient, Actor-Critic Method, etc)
https://smilesun.github.io/rlR
Other
26 stars 4 forks source link

Tensorflow 2.0 Breaking Changes #48

Open mul118 opened 4 years ago

mul118 commented 4 years ago

Hi @smilesun, love the idea of this package! R community would greatly benefit from having access to the latest deep reinforcement learning algs and platform.

Wanted to let you know that when installing the package with Tensorflow 2.0, I get the following error:

Error in py_get_attr_impl(x, name, silent) : 
  AttributeError: module 'tensorflow' has no attribute 'Session'
[1] FALSE

This seems to be due to a change to how 'Session' is handled in 2.0 v 1.0 (see: https://stackoverflow.com/a/58386580)

Is there a way to fix this, other than doing a virtualenv and pinning versions? Thanks!

sihuiren commented 7 months ago

Hi, I have also encountered this problem, how doing a virtualenv