The Maya Python interpreter, mayapy

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\
macOS /Applications/Autodesk/maya<VersionNumber>/Maya.app/Contents/bin/

mayapy must be run from a command line.