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

# Install

## Mac

The easiest way is using Brew.  Head over to <https://brew.sh/> and follow the instructions to install.  After you have finished installing come back to these docs and run the following commands in your terminal.  If you run into any errors while running these commands, restart your terminal.

```bash
$ brew install python3
$ python3
>>> 2+2
4
>>> exit()
$ 
```

Congratulations, you have successfully installed Python3 on your Mac.

{% hint style="info" %}
Once you get a good handle on python I would recommend looking into pyenv.  [Learn More](https://github.com/pyenv/pyenv)
{% endhint %}

## PC

You will want to head over to <https://www.python.org/downloads/> and download the latest stable version.

{% hint style="warning" %}
Add Python to the PATH during installation on the first screen.  If you forget to do this you will need to manually add it.  See the image below.
{% endhint %}

![Add Python To Path](/files/-MXuZU6hLs1pDsa-ZNUU)

Run the following commands in your Command Prompt to make sure everything was installed correctly.  If you run into any errors, try restarting your Command Prompt

```bash
$ python
>>> 2+2
4
>>> exit()
$ 
```

Congratulations, you have successfully installed Python3 on your PC.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gleek-dan.gitbook.io/dev-info/python/install.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
