PARL icon indicating copy to clipboard operation
PARL copied to clipboard

cannot import name 'PPO' from 'parl.algorithms'

Open xiehuanyi opened this issue 1 year ago • 7 comments

my code:

from parl.algorithms import PPO

my parl version:

grpcio-1.37.0 parl-2.2.1 pyzmq-18.1.1 tensorboardX-2.5

what can I do to solve this problem?

xiehuanyi avatar Mar 24 '23 07:03 xiehuanyi

Have you installed paddlepaddle?

TomorrowIsAnOtherDay avatar Mar 30 '23 02:03 TomorrowIsAnOtherDay

I used ai studio and paddle is installed by default

xiehuanyi avatar Mar 30 '23 02:03 xiehuanyi

截屏2023-03-30 10 39 56

xiehuanyi avatar Mar 30 '23 02:03 xiehuanyi

It seems that you have installed an out-of-date version of PARL. Could you show us the version of PARL in AI Studio?

TomorrowIsAnOtherDay avatar Mar 30 '23 03:03 TomorrowIsAnOtherDay

it seems that the default parl version is 1.4.1

xiehuanyi avatar Mar 30 '23 03:03 xiehuanyi

I see. You should install the newest parl 2.2.1.

TomorrowIsAnOtherDay avatar Mar 30 '23 03:03 TomorrowIsAnOtherDay

Thanks! It shows parl 2.2.1 is installed but the version I used is 1.4.1. this may be a bug of ai studio, i have to update my parl package and restart my notebook kernel to actually use parl 2.2.1.

xiehuanyi avatar Mar 30 '23 03:03 xiehuanyi