Goto https://www.python.org/downloads/release/python-3913/ and download the correct installer for your system (Windows installer 64-bit(recommended))
Check in "ADD PYTHON 3.9 TO PATH" when asked
Go to the unity projects file path (e.g. C:\Users\YOUR_USER\Documents\GitHub\AIBilSpelRep\AiBilspelGithub)
Open a command promt in the folder by clicking the path typing "cmd" and clicking enter.
Run the command "python" and check that the correct version is in use (3.9.13)
Run the command "exit()"
Run the command "python -m venv venv"
Run the command "venv\Scripts\activate"
Run the command "python -m pip install --upgrade pip"
Run the command "pip install mlagents"
Run the command "pip3 installtorch torchvision torchaudio"
Run the command "pip install protobuf==3.20.3"
Run the command "pip3 install packaging"
Run the command "mlagents-learn --help"
The result should be mlagents config as seen below
Open up a cmd in the project folder and activate the activate.bat script by running the command "venv\Scripts\activate"
Be sure unity is open, then run the command "mlagents-learn --run-id=YOURID". The id is just a way to identfy the result of the simulation.
ctrl + c will result in an error which stops the simulation