---
title: "Discussion on \"How to --> Convert PY --> EXE\" | Hashnode"
description: "Discussion on \"How to --> Convert PY --> EXE\". Easy simple way to convert python to exe file."
url: "https://hashnode.com/posts/py-to-exe/61c1e90c4f36f8440accf83d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to --> Convert PY --> EXE](https://omarcodes.io/py-to-exe?utm_source=hashnode&utm_medium=feed)

Easy simple way to convert python to exe file.

Dec 21, 2021 · 2 min read · omarcodes.io  
Updated Feb 24, 2022  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#windows](https://hashnode.com/tag/windows)

## Written by

[Omar Moustafa](https://hashnode.com/@Omar-The-Dev)

@Omar-The-Dev · Dubai, United Arab Emirates

  
[View profile](https://hashnode.com/@Omar-The-Dev)

A full-stack developer, Python expert and tech-lover.

I'm a software developer based in the United Arab Emirates 🇦🇪. I enjoy coding open-source projects that solve unique, out-of-the-box problems. I love combining my hobbies like design, coding and building various cool projects with Raspberry Pi and IoT. Obsessed with Automation and Software Development.

## Responses 2

Markdown supported · ⌘↵ to post

[Alessandro](https://hashnode.com/@anger)

[Jan 30, 2023](https://hashnode.com/posts/py-to-exe/61c1e90c4f36f8440accf83d/comment/63d7e6aaaa966f48b2936ca6)

This is an ok solution if you want to bundle it so that it can easily be distributed and run. However, don't think that this is safe or secure for your source code as you can easily use a tool like [github.com/extremecoders-re/pyinstxtractor](https://github.com/extremecoders-re/pyinstxtractor) and retrieve all your python code. It is a great easy to follow article and I have used pyinstaller as well, it is just something to keep in mind.

[Omar Moustafa](https://hashnode.com/@Omar-The-Dev)

[Feb 17, 2023](https://hashnode.com/posts/py-to-exe/61c1e90c4f36f8440accf83d/comment/63d7e6aaaa966f48b2936ca6#reply-63ef1d0d3c9c765be7a469e4)

Thanks for reading this article.

Actually this article was made for development purpose and not for production purpose, it was just made so curious people would know how to do that, but of course there are better ways for production.

Thank you and happy coding 💛💙

[Mattia Ducci](https://hashnode.com/@MattPunk)

[Dec 21, 2021](https://hashnode.com/posts/py-to-exe/61c1e90c4f36f8440accf83d/comment/61c2414b5ca9b60b25c5abd7)

Great guide! Very short and clear!

[Omar Moustafa](https://hashnode.com/@Omar-The-Dev)

[Dec 22, 2021](https://hashnode.com/posts/py-to-exe/61c1e90c4f36f8440accf83d/comment/61c2414b5ca9b60b25c5abd7#reply-61c2cd5d50d5020b9758cdca)

You're welcome Mattia Ducci, if you have any suggestion, you are welcome to tell it to me 😊.

Happy Coding! Best regards,

~ Omar
