PaddlePaddle / PARL

A high-performance distributed training framework for Reinforcement Learning
https://parl.readthedocs.io/
Apache License 2.0
3.25k stars 820 forks source link

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

Open xiehuanyi opened 1 year ago

xiehuanyi commented 1 year ago

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?

TomorrowIsAnOtherDay commented 1 year ago

Have you installed paddlepaddle?

xiehuanyi commented 1 year ago

I used ai studio and paddle is installed by default

xiehuanyi commented 1 year ago
截屏2023-03-30 10 39 56
TomorrowIsAnOtherDay commented 1 year ago

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

xiehuanyi commented 1 year ago

it seems that the default parl version is 1.4.1

TomorrowIsAnOtherDay commented 1 year ago

I see. You should install the newest parl 2.2.1.

xiehuanyi commented 1 year ago

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.