Search Unity

Bug 200+ errors while installing mlagents package

Discussion in 'ML-Agents' started by Shiine, Oct 26, 2023.

  1. Shiine

    Shiine

    Joined:
    Jan 27, 2015
    Posts:
    3
    I get a bunch of errors when i install the mlagents package in unity.
    I dont know what ive done for this to happen but i have installed everithing accordning to the guides.
    is there anyone that can help?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,899
    You mean the official install guide?

    Something is off because the Barracuda package does not list ml-agents under "used by", like it does for me in 2022.3.11:
    upload_2023-10-26_12-25-35.png

    This seems to indicate that ml-agents package may not be (correctly) installed in your project. Try following the guide from scratch again, at least for everything that has you create a Unity project and install Unity packages, not necessarily the Python stuff except for setting up the virtual Python environment for every project.
     
  3. Shiine

    Shiine

    Joined:
    Jan 27, 2015
    Posts:
    3
    I did manage to get rid of all those errors, but now when i try to do these:

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

    I get this error:

    ERROR: Failed building wheel for numpy
    ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects

    Ive tried to update pip and install numpy and alot of other things but nothing has worked.