# Unity ML-Agents Python Interface and Trainers The `mlagents` Python package is part of the [ML-Agents Toolkit](https://github.com/Unity-Technologies/ml-agents). `mlagents` provides a Python API that allows direct interaction with the Unity game engine as well as a collection of trainers and algorithms to train agents in Unity environments. The `mlagents` Python package contains two components: The low level API which allows you to interact directly with a Unity Environment (`mlagents.envs`) and an entry point to train (`mlagents-learn`) which allows you to train agents in Unity Environments using our implementations of reinforcement learning or imitation learning. ## Installation Install `mlagents` with: ```sh pip install mlagents ``` ## Usage & More Information For more detailed documentation, check out the [ML-Agents Toolkit documentation.](https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Readme.md)