> For the complete documentation index, see [llms.txt](https://docs.pydraw.graphics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pydraw.graphics/guides/installation.md).

# Installation and Setup

## Installation

Installing pyDraw via the command-line is as simple as one command:

```
pip install pydraw
```

It is also possible to use pydraw by placing the library file in the same directory as your project:

{% embed url="<https://github.com/pydraw/pydraw/releases/1.4.1>" %}

{% hint style="info" %}
&#x20;Using the library file for pyDraw will work normally for most of the time, but you may have to install [Tkinter](https://tkdocs.com/tutorial/install.html) and/or [Pillow](https://pillow.readthedocs.io/en/stable/installation.html) if they are not installed!
{% endhint %}

Once you've got pyDraw installed, you're all set. You can test your installation like so:

```python
from pydraw import *

screen = Screen(800, 600)

print('Hello, pyDraw!')
screen.stop()
```

Then run your file with Python, and you're all set:

```bash
python main.py
```


---

# 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://docs.pydraw.graphics/guides/installation.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.
