Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Feedback Unity: Fix the damn instructions!

Discussion in 'ML-Agents' started by col000r, Apr 11, 2024.

  1. col000r


    Mar 27, 2008
    You just need one person to actually follow the instructions to figure out that it all simply doesn't work with python 3.10.12. Can you maybe update the instructions to something that actually works? Thanks.
    Last edited: Apr 11, 2024
  2. punkouter24


    Mar 1, 2024
    goto downloads
    git clone --branch release_21
    cd .\ml-agents\
    python -m venv venv (py -3.9 -m venv venv) (get python v3.9.13)
    python -m pip install --upgrade pip
    pip install mlagents
    pip3 install torch torchvision torchaudio
    pip install protobuf==3.20.3
    pip install onnx
    mlagents-learn config/ppo/3dball.yaml --run-id PoSquarePushCl1 --force
    tensorboard --logdir results

    New project in Unity
    Packages / Unity Registry / ml... / 2.0.1 install
    marcoantap likes this.
  3. Jean-BaptisteEmanuelZorg


    Jan 13, 2019
    When I follow the official instructions the command

    python -m pip install ./ml-agents-env

    downloads numpy 1.21.2:
    Preparing metadata ( ... done
    Collecting numpy==1.21.2 (from mlagents_envs==1.0.0)
    Downloading (10.3 MB)

    and tries to build a whl for numpy 1.21.2 which fails :

    Building wheel for numpy (pyproject.toml) ... error
    error: subprocess-exited-with-error

    × Building wheel for numpy (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [287 lines of output] RuntimeWarning: NumPy 1.21.2 may not yet support Python 3.10.

    so has unity neglegted to update the mlagents_envs numpy identifier?
    Is there anyway around this?
    The above answer seems to not be using the 3.0 package .

    EDIT: got past the numpy error, solution was editing the files , found help in a closed issue on the github.
    Last edited: Apr 22, 2024