Maya comes with its own Python interpreter, mayapy.
mayapy is useful for batch processing and to access Maya's libraries from other applications.
mayapy is located in the following directories:
| Platform | Location |
|---|---|
| Windows | C:\Program Files\Autodesk\Maya<VersionNumber>\bin\ |
| Linux | /usr/autodesk/Maya<VersionNumber>/bin/ |
| macOS | /Applications/Autodesk/maya<VersionNumber>/Maya.app/Contents/bin/ |
mayapy must be run from a command line.
mayapy can also be used to install Python packages, including PyMel, using the pip package management system.