Python doesn't have a built-in way to do that, but there are tools for it. Pyinstaller looks like the most recommended one right now.