https://www.bilibili.com/video/BV1hE411W7Pi?from=search&seid=8648158976082035057&spm_id_from=333.337.0.0
一定要先安装tensflow
和pytourch
下载ML-Agents Release
https://github.com/Unity-Technologies/ml-agents/releases
anaconda移动到某个位置:
cd /d D:\data\GCN\gcn-master(注意cd /d)
pip install --upgrade --ignore-installed tensorflow
(1)定位到:
D:\unity_project\ml-agents-release_14\ml-agents-envs
(2)
Pip install -e .
(e后面有空格)
(3) 定位到
D:\unity_project\ml-agents-release_14\ml-agents
(4)
Pip install -e .
(e后面有空格)
(5)查看是否安装成功
mlagents-learn --help(如果有问题重启环境、激活再试试)
ML-Agents安装成功后,需要在unity端配置
新建项目之后,打开windows,package management , 左上角+号,选择add package from disk(从本地添加package)
定位到安装ML-Agents版本的com.unity.ml-agents,选择package.json