> 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/compile-pyteal-file.md).

# Compile PyTeal File

You can not directly deploy a PyTeal file to create a stateful app or stateless logic sig file. The PyTeal file first needs to be compiled into a regular TEAL file and then the generated TEAL file can be used as part of stateful app or logic sig.

* To compile a PyTeal file, right click on the pyTeal file and select "Compile PyTeal".

![](/files/-MNgLE5z87Qjc6RFUYit)

* After PyTeal compilation, the final TEAL file is generated under **generated-src** folder.<br>

![](/files/-MNgL_KAQV5RSKltkCKo)

* Now you can use this generated TEAL file as a regular TEAL file.&#x20;

&#x20;For example:  Create a Logic Sig from this generated TEAL file or create a stateful app.

![](/files/-MNgM2WxnocJVtTw3aDL)
