Install the windows version of multi-agent MADDPG

总体的环境是:
pip install gym==0.10.5(很好用的命令:pip install gym==0.9.4 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com)
conda install tensorflow-gpu==1.9.0

更新pip:d:\install_anconda3\envs\pytorch0.3\python.exe -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip 安装tensorflow-gpu:pip install tensorflow-gpu==1.9.0  -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

1.解压缩maddpg-master.zip和multiagent-particle-envs-master.zip
放在pycharm,别忘了将文件夹转换成Reoursce root。

# 第2,3步可以不用。
2.在maddpg-master文件夹外层目录运行命令pip install -e maddpg-master
3.在multiagent-particle-envs-master文件夹外层目录运行命令pip install -e multiagent-particle-envs-master
# 这一步很重要。
4.设置系统环境变量,把multiagent-particle-envs-master所在路径加入系统path中
4.在maddpg的experiments文件夹中运行:python train.py --scenario simple时出错:ImportError: cannot import name ‘prng’ from ‘gym.spaces’。这是gym版本问题,解决方案

Guess you like

Origin blog.csdn.net/gz153016/article/details/112504525