# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
