PaddlePaddle / PARL

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

aistudio安装parl,然后导入失败 #917

Closed w5688414 closed 2 years ago

w5688414 commented 2 years ago

最近写notebook,发现parl很难安装上去,这是我的测试:

(3.1.0)
Requirement already satisfied: dataclasses in /opt/conda/lib/python3.6/site-packages (from werkzeug>=0.11.15->tb-nightly==1.15.0a20190801->parl) (0.8)
Installing collected packages: parl
Successfully installed parl-2.0.4
aistudio@jupyter-169515-4275734:~$ python
Python 3.7.4 (default, Aug 13 2019, 20:35:49) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from parl.algorithms import SAC
[06-28 16:46:11 MainThread @utils.py:79] WRN paddlepaddle version: 2.3.0. The dynamic graph version of PARL is under development, not fully tested and supported
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/parl/remote/communication.py:38: DeprecationWarning: 'pyarrow.default_serialization_context' is deprecated as of 2.0.0 and will be removed in a future version. Use pickle or the pyarrow IPC functionality instead.
  context = pyarrow.default_serialization_context()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'SAC' from 'parl.algorithms' (/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/parl/algorithms/__init__.py)
>>> 
TomorrowIsAnOtherDay commented 2 years ago

这个看着像是你import了旧版本的parl,请确认下你import 的parl版本。

[06-28 16:46:11 MainThread @utils.py:79] WRN paddlepaddle version: 2.3.0. The dynamic graph version of PARL is under development, not fully tested and supported