r/learnpython • • Mar 15 '21

i cannot seem to convert .py to exe

it has been hours, i have tried so muuuuch. Any ideas on what i could be doing wrong ? i am using the newest version of python

0 Upvotes

7 comments sorted by

4

u/DezXerneas Mar 15 '21

What error are you getting? Have you tried pyinstaller? And I just gotta ask, you sure you're not just changing the extension name, because I tried that once?

2

u/RecognitionKind1350 Mar 15 '21

Well ive been trying to use pyinstaller but pip wont work, like at all

1

u/DezXerneas Mar 15 '21

I don't really know how to fix that. You could try looking up how to reinstall pip in your OS, I'm pretty sure there's a way to install pyinstaller without pip or you could maybe even install a VM and install pyinstaller there.

Or just make another post about pip not working for you.

3

u/PranavDesai518 Mar 15 '21

I use pyinstaller to convert my .py files to .exe all the time and have faced no issues as yet. There are tons of tutorials available on YouTube.

1

u/PranavDesai518 Mar 15 '21

Fyi: if you make the entire exe file into just one file, this file usually takes a lot of time to boot up (depending on the modules you're importing into your code). To overcome this I use innosetup to convert my exe file into an installable which boots up much faster.

2

u/Jian_Yang_94040 Mar 15 '21

What are you using to convert?

1

u/Jjzeng Mar 15 '21

What is your intent? To take inputs from your python code and write it into an excel file? You’re not really giving us much to go off on