DEV Community

John
John

Posted on

How to Install Unity ML-Agents Release 20 on Mac

Mac OS X 12.2.1, M1 Macbook Pro

Here are the steps I did:

Image description

  • Setup conda environment in your Unity's project folder
conda create -n unity-mla python=3.9.7 -y
conda activate unity-mla
conda config --add channels pytorch
conda install pytorch torchvision -c pytorch
conda install grpcio h5py -y
pip install mlagents==0.30.0 -q
Enter fullscreen mode Exit fullscreen mode
  • Run mlagents-learn
mlagents-learn --help
Enter fullscreen mode Exit fullscreen mode
  • Run through this tutorial:

https://github.com/Unity-Technologies/ml-agents/blob/release_20_docs/docs/Learning-Environment-Create-New.md

Top comments (1)

Collapse
 
naucode profile image
Al - Naucode

Hey! Thank you for this, I liked it ;) keep writing, you got my follow!