Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug ML agent installation problem in MAC(install python -m pip install ./ml-agents)

Discussion in 'ML-Agents' started by santhmithran, Mar 21, 2024.


ML agent installation problem in MAC(install python -m pip install ./ml-agents)

  1. How to solve the installation issue?

    0 vote(s)
  2. How to install MLagent in MAC?

    0 vote(s)
Multiple votes are allowed.
  1. santhmithran


    Aug 11, 2018
    I am new to the ML agent concept. I tried to install python -m pip install ./ml-agents with help of virtual environment. But I am getting some error in terminal.

    Error is :
    Building wheels for collected packages: onnx

    Building wheel for onnx ( ... error

    error: subprocess-exited-with-error

    × python bdist_wheel did not run successfully.

    │ exit code: 1

    ╰─> [768 lines of output]

    File "/private/var/folders/d1/yjcvrl_x46xb2jz1n3b1wr5m0000gn/T/pip-install-4dpnvssf/onnx_3fef7752fde240669ff4d6c0134cab4e/", line 217, in run


    File "/Users/santhakumar/Downloads/PythonAnaconda/PythonSubfolder/anaconda3/envs/mlagents/lib/python3.10/", line 369, in check_call

    raise CalledProcessError(retcode, cmd)

    subprocess.CalledProcessError: Command '['/opt/homebrew/bin/cmake', '--build', '.', '--', '-j', '8']' returned non-zero exit status 2.

    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.

    ERROR: Failed building wheel for onnx

    Running clean for onnx

    Failed to build onnx

    ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects

    Attached Files: