> For the complete documentation index, see [llms.txt](https://algodea-docs.bloxbean.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://algodea-docs.bloxbean.com/pyteal/untitled.md).

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

![](https://1148938711-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MKjsRBIKLQhzDC7WBQY%2F-MNfnV8zlh0owbaFgZom%2F-MNfziRikq8w757KwXCy%2Fpython-ce.png?alt=media\&token=5e2eed68-5154-414c-ad8b-92a5dc8ad077)

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

![](https://1148938711-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MKjsRBIKLQhzDC7WBQY%2F-MNfnV8zlh0owbaFgZom%2F-MNg0ukQoMLE2D8-OECJ%2FPython.png?alt=media\&token=49a012ba-fc74-4c17-9925-75ccf5f6eaa8)

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

![](https://1148938711-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MKjsRBIKLQhzDC7WBQY%2F-MNfnV8zlh0owbaFgZom%2F-MNg1jUMhf8p-yMB-wJB%2Fmodulesettingspage.png?alt=media\&token=a8938522-ee82-491e-865e-528448e8582f)

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

&#x20;   &#x20;

![](https://1148938711-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MKjsRBIKLQhzDC7WBQY%2F-MNfnV8zlh0owbaFgZom%2F-MNg2WWosedy0kUFQ5OO%2Fpython-sdk-add.png?alt=media\&token=75a5a530-1572-4b0f-bd63-852ba4c66849)

#### Install PyTeal

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

![](https://1148938711-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MKjsRBIKLQhzDC7WBQY%2F-MNfnV8zlh0owbaFgZom%2F-MNg35WMp-NfR7wLeL9U%2Fpyteal-install.png?alt=media\&token=a553138f-3202-477c-bd9f-3940fd316f60)

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

Go to "Project" and select Python SDK.

![](https://1148938711-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MKjsRBIKLQhzDC7WBQY%2F-MNfnV8zlh0owbaFgZom%2F-MNg3KV5g2fJA7WBfrs7%2Fpsdk-selection.png?alt=media\&token=40e0f090-d1b0-4670-a581-eea5a8543e7a)

Now you are ready to write your first PyTeal program.
