.py to .exe [solved] | Sololearn: Learn to code for FREE!

+1

.py to .exe [solved]

I’ve been having problems trying to convert my py files to executables on Windows 10. I installed pyinstaller and have been trying with that but with no luck. When I try to run the exe it fails. I am using python version 3.6 and I’m not sure if it’s a compatibility issue with the python version or with Windows 10 or if something else entirely is going on. Any help would be appreciated. Thanks!

7/23/2018 9:17:42 PM

Brandon Bradshaw

7 Answers

New Answer

+1

So i figured out my problem. I was creating a Tkinter application that used an icon, and pyinstaller doesnt automatically add necessary files so i had to copy the icon file to the folder with the exe and it worked fine

+2

It is the compiler (PyInstaller). Use py2exe.

+1

I use PyInstaller and I have no errors at all

+1

Christopher on windows 10?

+1

.teew okay thanks ill definitely try that one next

+1

Yes Brandon Bradshaw

+1

Christopher okay thanks. im not sure why i’m having trouble then. it generates all the files and the .exe but it just doesnt run