> For the complete documentation index, see [llms.txt](https://mac-python.gitbook.io/python-mac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mac-python.gitbook.io/python-mac/python.md).

# Python

It might come as a pleasant surprise to you, but your Mac already has Python! macOS, like Linux, ships with [Python](http://python.org/) installed by default.&#x20;

![](/files/-L9ubinqDtId7HJhgV4x)

But you don't want to mess with the system Python (some system tools rely on it and it's usually older etc..), so we'll install our own version.

![](/files/-L9uh28HBYS7tpgXsomJ)

There are two ways to install Python, (1) Homebrew and (2) Pyenv. For the advanced users, if you want to get multiple versions of Python (e.g. 2, 3, and anaconda) then I recommend you using pyenv.
