# Unity ML-Agent 安裝
1.安裝 Unity Hub (方便更改版本)
https://unity.com/cn/download

2.安裝 Anaconda 用於建立訓練環境
https://www.anaconda.com/download/

3.安裝 ML-Agent
https://github.com/Unity-Technologies/ml-agents/releases
安裝新版本
4.在 Anaconda 建立一個環境


環境建立好後開啟並安裝 PyTorch
(需要注意 Python 的版本是否和 PyTorch 相容,並查看自己 Cuda 的版本)
https://pytorch.org/
5.在環境下安裝 mlagent
pip install mlagents
6.Unity 安裝 ML Agent
開啟前面 ml-agents 的專案

進到 Windows -> Package Manager 找到 ML Agents安裝


接安裝完後就可利用 ml-agents 專案的範例遊玩並觀看
諾是visual studio沒有連到MLAgents
到Edit -> Preferences

確保你的External Tool 選到你要的visual studio