Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what are the pros/cons of py2exe [closed]

Tags:

python

py2exe

im looking for simple script that will compile to exe , and i found py2exe before i decide to work with it , what do you think are the pros and cons of the py2exe tool?

like image 920
user63898 Avatar asked Nov 25 '25 23:11

user63898


1 Answers

Pros:

  • Your app becomes standalone, can run on a PC without Python

Cons:

  • False sense of security, your app is still interpreted, it's just that the script is no longer visible but the byte code is and AFAIK it can be easily converted back to the source.
  • Large application size, the simplest script packaged with py2exe becomes several megabytes in size.
  • Potential problems, in certain cases(mostly if you use encodings) you need to retest your application as an exe and make sure everything works as expected, you may need to check in the code to find out if you are running inside py2exe and do something special.
  • May not work if your application depends on certain third-party python modules.

Check Py2exe homepage to find how to more and how to workaround some of these problems

like image 169
Diaa Sami Avatar answered Nov 28 '25 12:11

Diaa Sami