# Configure Python SDK and PyTeal

To use PyTeal in your smart contract project, you need to make sure the following steps are done.

### 1. Install Python plugin in IntelliJ IDE

If you don't have Python plugin installed yet, you can do that from "Plugins" page in IntelliJ IDE.

For **IntelliJ IDEA Community Edition**, you need to install "Python Community Edition" plugin.

![](/files/-MNfziRikq8w757KwXCy)

For **IntelliJ IDEA Ultimate Edition**, check for "Python" plugin

![](/files/-MNg0ukQoMLE2D8-OECJ)

### 2. Configure / Add Python SDK and Install PyTeal

Once the python plugin is installed, you can create a Python SDK inside IntelliJ IDE. But before that,  you need to make sure you already have Python installed on your machine.

#### To create / configure a new Python SDK&#x20;

* Right click on the  project and select "Open Module Settings"

![](/files/-MNg1jUMhf8p-yMB-wJB)

* Select "SDKs" and Click "+" to add a new Python SDK

&#x20;   &#x20;

![](/files/-MNg2WWosedy0kUFQ5OO)

#### Install PyTeal

* Once the Python SDK is there, go to "packages" tab and click "+" to install pyteal.

![](/files/-MNg35WMp-NfR7wLeL9U)

### 3. Select Python SDK as Project's SDK

Go to "Project" and select Python SDK.

![](/files/-MNg3KV5g2fJA7WBfrs7)

Now you are ready to write your first PyTeal program.


---

# 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://algodea-docs.bloxbean.com/pyteal/untitled.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.
