# Converting .py file to .exe extension?

**URL:** <https://onehack.st/t/converting-py-file-to-exe-extension/172378>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [February 10, 2021, 5:12pm UTC](https://onehack.st/t/converting-py-file-to-exe-extension/172378 "2021-02-10T17:12:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![big](https://onehack.st/user_avatar/onehack.st/big/32/17883_2.png) [@big](https://onehack.st/u/big)\
**Post date:** [February 10, 2021, 5:12pm UTC](https://onehack.st/t/converting-py-file-to-exe-extension/172378/1 "2021-02-10T17:12:42Z")

</div>

Does anyone know how to convert an .py file to .exe ? i tried pyinstaller but windows doesnt like unsigned .exe. i tried several methods i doesn’t seems to be working

---

<div class="post-metadata">

**Author:** ![New\_H](https://onehack.st/user_avatar/onehack.st/new_h/32/110793_2.png) [@New\_H](https://onehack.st/u/New_H)\
**Post date:** [February 10, 2021, 8:51pm UTC](https://onehack.st/t/converting-py-file-to-exe-extension/172378/2 "2021-02-10T20:51:30Z")

</div>

I don’t exactly know what you are trying to do, but have you tried Auto PY to EXE?  
I used it one time and it worked great.

---

<div class="post-metadata">

**Author:** ![big](https://onehack.st/user_avatar/onehack.st/big/32/17883_2.png) [@big](https://onehack.st/u/big)\
**Post date:** [February 11, 2021, 8:52am UTC](https://onehack.st/t/converting-py-file-to-exe-extension/172378/4 "2021-02-11T08:52:09Z")

</div>

I want to run the script on windows computer thaat doesn’t have python install on it.

---

<div class="post-metadata">

**Author:** ![Jared](https://onehack.st/user_avatar/onehack.st/jared/32/38087_2.png) [@Jared](https://onehack.st/u/Jared)\
**Post date:** [February 11, 2021, 12:46pm UTC](https://onehack.st/t/converting-py-file-to-exe-extension/172378/5 "2021-02-11T12:46:16Z")

</div>

Not sure you can do that. You might be better off using a compiled language like C or a shell script.  
If anyone does know how to do this I would be very interested to know how though.

---

<div class="post-metadata">

**Author:** ![cccarv](https://onehack.st/user_avatar/onehack.st/cccarv/32/5389_2.png) [@cccarv](https://onehack.st/u/cccarv)\
**Post date:** [February 11, 2021, 5:14am UTC](https://onehack.st/t/converting-py-file-to-exe-extension/172378/3 "2021-02-11T05:14:01Z")

</div>

pip install cx\_Freeze

cxfreeze yourscript.py --target-dir anydir

thats all…

[Next page](https://onehack.st/t/converting-py-file-to-exe-extension/172378.md?page=2)
