Hello, can somebody give me step by step instruction of installation all python stufs to make ML Agents 2.3.0 work. I try 3.8.0 python and it is not working also try 3.11.3 it also is not working. Is there maybe link on guide how to install and setup all of this features.
Have a look at the installation doc:
I followed that installation doc and I can’t install it I always got the errors. I even try to install it via Anaconda and have errors.
maybe you should post the error because like that is is vague … is it a python erreor ? an unity error ? an error during installation ? during training ?
I figured how to setup everything thanks to this links:
I follow this tutorial:
youtube.com/watch?v=Yix4iV_io6o&t=91s
Modified the required versions:
0.30.0 installation fails under Python 3.10 · Issue #5826 · Unity-Technologies/ml-agents · GitHub
TheRisenPhoenix commented on Jan 25 •
Currently, you have to clone the repository, and adjust the following lines:
In ml-agents/setup.py:
python_requires=“>=3.8.13,<3.11.0” (line 82)
In ml-agents-envs/setup.py:
“numpy>=1.14.1,<1.24” (line 54)
and
python_requires=“>=3.8.13,<3.11.0” (line 63)
and delete “numpy==1.21.2” (line 60)
Then, first install torch using your needed configuration (Start Locally | PyTorch) and then install your locally changed python packages:
pip3 install -e ./ml-agents-envs
pip3 install -e ./ml-agents
Used commands from:
and then used command -
pip install protobuf==3.20
And now evrithing is woking.
I googled each errors and found solutions in google, I posted guide above.
Thanks! Very helpful.
As of today - for others having similar problems following the Unity docs - this still works, but with the current recommended python the line:
python_requires=“>=3.10.1,<=3.10.12”,
is now in both setup.py files