Ml-agents for Python Not Installing

I’ve been trying to install ml-agents for days now. The unity package works, mlagents-envs downloads, but with always the same error ml-agents fails to install. Used multiple python versions and updated many things tried everything but no. Installed conda and used its packages but still no. First time using python btw. Here is the log:

~ % pip install mlagents
Collecting mlagents
  Using cached mlagents-1.0.0-py3-none-any.whl.metadata (2.1 kB)
Requirement already satisfied: grpcio<=1.48.2,>=1.11.0 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (1.48.2)
Requirement already satisfied: h5py>=2.9.0 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (3.11.0)
Requirement already satisfied: mlagents-envs==1.0.0 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (1.0.0)
Requirement already satisfied: numpy<2.0,>=1.13.3 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (1.21.2)
Requirement already satisfied: Pillow>=4.2.1 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (10.4.0)
Requirement already satisfied: protobuf<3.20,>=3.6 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (3.19.6)
Requirement already satisfied: pyyaml>=3.1.0 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (6.0.1)
Collecting torch>=1.13.1 (from mlagents)
  Using cached torch-2.4.0-cp310-none-macosx_11_0_arm64.whl.metadata (26 kB)
Collecting tensorboard>=2.14 (from mlagents)
  Using cached tensorboard-2.17.0-py3-none-any.whl.metadata (1.6 kB)
Requirement already satisfied: six>=1.16 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (1.16.0)
Requirement already satisfied: attrs>=19.3.0 in /opt/anaconda3/lib/python3.10/site-packages (from mlagents) (23.1.0)
Collecting huggingface-hub>=0.14 (from mlagents)
  Using cached huggingface_hub-0.24.5-py3-none-any.whl.metadata (13 kB)
Collecting onnx==1.12.0 (from mlagents)
  Using cached onnx-1.12.0.tar.gz (10.1 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      /private/var/folders/ln/ff2nvlsn2dz5fyczxbhpb_080000gn/T/pip-install-8zqcasw8/onnx_4e212094e412463d90e2c04b5f1689b1/setup.py:31: DeprecationWarning: Use shutil.which instead of find_executable
        CMAKE = find_executable("cmake3") or find_executable("cmake")
      /private/var/folders/ln/ff2nvlsn2dz5fyczxbhpb_080000gn/T/pip-install-8zqcasw8/onnx_4e212094e412463d90e2c04b5f1689b1/setup.py:32: DeprecationWarning: Use shutil.which instead of find_executable
        MAKE = find_executable("make")
      fatal: not a git repository (or any of the parent directories): .git
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/ln/ff2nvlsn2dz5fyczxbhpb_080000gn/T/pip-install-8zqcasw8/onnx_4e212094e412463d90e2c04b5f1689b1/setup.py", line 81, in <module>
          assert CMAKE, "Could not find cmake executable!"
      AssertionError: Could not find cmake executable!
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.