<jupyter_start><jupyter_text>请点击[此处](https://ai.baidu.com/docs/AIStudio_Project_Notebook/a38e5576)查看本环境基本用法.  Please click [here ](https://ai.baidu.com/docs/AIStudio_Project_Notebook/a38e5576) for more detailed instructions.<jupyter_code>#!pip uninstall -y parl  # 说明：AIStudio预装的parl版本太老，容易跟其他库产生兼容性冲突，建议先卸载
#!pip uninstall -y pandas scikit-learn # 提示：在AIStudio中卸载这两个库再import parl可避免warning提示，不卸载也不影响parl的使用

!pip install paddlepaddle-gpu==1.6.3.post97  -i https://mirror.baidu.com/pypi/simple          #可选安装paddlepaddle-gpu==1.6.3.post107
#!pip install parl==1.3.1   
!pip list | grep paddlepaddle
!pip list | grep parl<jupyter_output>paddlepaddle-gpu     1.6.3.post107  
parl                 1.3.1<jupyter_text>**安装gym==0.10.5版本，再安装multiagent-particle-envs-master环境**<jupyter_code>#一定要安装gym==0.10.5版本的gym，否则报错
!pip install gym==0.10.5  -i https://mirror.baidu.com/pypi/simple  
!unzip multiagent-particle-envs-master.zip
#cd multiagent-particle-envs-master   &  pip install -e .      #请到终端操作
#!python  train.py 
!python train.py --env simple_tag
# #!python simple_model.py
# #!python  simple_model.py
#!python  train.py  --env  simple_tag  --max_episodes 50000   simple_world_comm
!python  train.py  --env  simple_world_comm  --max_episodes 36000<jupyter_output>[32m[06-30 08:59:42 MainThread @logger.py:224][0m Argv: train.py --env simple_world_comm --max_episodes 36000
/home/aistudio/multiagent-particle-envs-master/multiagent/scenarios/__init__.py:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
[32m[06-30 08:59:42 MainThread @train.py:73][0m agent num: 6
[32m[06-30 08:59:42 MainThread @train.py:74][0m observation_space: [Box(34,), Box(34,), Box(34,), Box(34,), Box(28,), Box(28,)]
[32m[06-30 08:59:42 MainThread @train.py:75][0m action_space: [MultiDiscrete2, Discrete(5), Discrete(5), Discrete(5), Discrete(5), Discrete(5)]
[32m[06-30 08:59:42 MainThread @train.py:76][0m obs_shape_n: [34, 34, 34, 34, 28, 28]
[32m[06-30 08:59:42 MainThread @train.py:77][0m act_shape_n: [9, 5, 5, 5, 5, 5]
[32m[06-30 08:59:42 MainThread @train.py:80][0m agent 0 obs_low:[-inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf
 -inf -inf -inf -inf [...]
{'fraction_non_alphanumeric': 0.15570175438596492, 'fraction_numerical': 0.09078947368421053, 'mean_word_length': 4.731155778894473, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '607015', 'license': 'Apache-2.0', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1028, 'n_words': 180, 'path': 'MADDPG_With_Aistudio.ipynb', 'repo_name': 'EastSmith/RL_MADDPG_tag', 'size': '2280'}