Setting up ML Agents for Unity in 5 Minutes

preview_player
Показать описание
Thank you for watching. Give this video a like if it helped and subscribe for more tutorials!

** If you have troubles building wheels for numpy (as many people seem to have), please check the pinned comment! **

Help with Switching Python Versions:

Adding Python to Path Environment Variables:

ML-Agents Installation Documentation:

@CodeMonkeyUnity's ML Agent's Playlist:
Рекомендации по теме
Комментарии
Автор

Hey. First of all, great tutorial.

I was hoping you could help with a error i've been seeing a lot in the comments. I was getting this error :""ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects"", so i tried to use your "requirements.txt" file and install the packages with the "correct" versions you specified. I couldn't help but notice the same error when typing "pip install - r requirements.txt" in cmd. I am using python 3.10.0, I also updated pip to the latest version, but i keep getting this error :
RuntimeError: Broken toolchain: cannot link a simple C program
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (numpy)"

Could it be some C++ tools i didnt install (yes i did download the vs build tools for C++, v:14.0)

Also i was wondering if i can follow an outdated tutorial (say CodeMonkey's tutorial for example) and use older versions of torch, python, mlagents etc... Would it theoreticaly work ?

IsmaiArrouchdi
Автор

I am soo glad somebody is making a update to his older setup!

theashbot
Автор

This is the best tutorial on installing ML Agents atm. I followed some other tutorials and documentation but got frustrated after trying so many different versions and nothing worked. This video will get everything working, so thanks a lot!

cosminp
Автор

jezz, finaly tutorial that really helped... i was trying to setup my training for almost a week. you`re life saver <3

ДаніілКрасніков
Автор

Thank you very much. I saw Code Monkey's videos and thought it's gonna be perfect, but the installation was weird, so I started looking and your vid is perfect for filling that gap.

valongaming
Автор

buddy, thank you much for this tutorial. it helped me a lot. i was struggling so much with the setup

CrowDelRey
Автор

Thank you so much! i spent like 5 hours trying to install this and i finally stumbled upon this tutorial

snakeywakey
Автор

Best. Tutorial. I. Have. Watched. In. My. Life.

IWAJVR
Автор

Legend. Got stuck on this for 2.5 hours

victorhurst
Автор

ILY so much man I was about to give up but you saved me

yiit_unlocked
Автор

very much appreciated this video needed to be made!

justinbishop
Автор

Awesome tutorial. I used your video to setup a shell script so I don't have to remember to do

bigedwerd
Автор

Edit: my comments do show up unless you sort by newest first idk why

i always get this error message when installing mlagents in python :
"ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects"
I already tried installing numpy by itself but it was already there
could someone please help me?

Phoenix_
Автор

I was hoping you could help as I get the error: TypeError: Invalid first argument to `register()`. typing.Dict[mlagents.trainers.settings.RewardSignalType, is not a class or union type.

I am using 3.11.9 but i have tried python 3.10 and get the same error and help would be greatly appreciated

nicholaspaleologos
Автор

thank you so much my friend. you save my day!

ferb
Автор

i got this error when i did mlagents-learn --help ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there. i dont understand it

Plaquedragon
Автор

thank you man I finally got it working

Zufation
Автор

thank you for the tutorial but can you please help im getting the error

OSError: [WinError 127] The specified procedure could not be found.


im unsure of what to do

b_a_n_g..__.-._.-.__...b_a_n_g
Автор

I've reveived an error when tried "pip install mlagents": error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]

cfactorygames
Автор

here ask for barracuda when install it 999+ errors appears

cfactorygames