How to make exe file from pyc file

14,790

Solution 1

I'd use cx_freeze.

I've tried py2exe, and it doesn't handle dependencies as well as cx_freeze. Best of all, it's cross-platform! I've made Windows and Linux binaries with it, so I can confirm it works properly.

Here's a little tutorial to get you started: http://www.blog.pythonlibrary.org/2010/08/12/a-cx_freeze-tutorial-build-a-binary-series/.

Solution 2

Checkout http://www.py2exe.org/

Also look at this question: How to make an executable file in Python?

Share:
14,790

Related videos on Youtube

Arjun Jain
Author by

Arjun Jain

Hi, I am Arjun Jain, a 24 year old guy bitten by the Linux bug, passionate about Free and Open Source Software and GNU/Linux. I’m a developer, contributor and a student. I enjoy dreaming, writing, coding, traveling, hangout with friends and philosophy. My interested areas of work include Open Source, Linux, PHP, Python, Google Appengine, PyQt, Shell Scripting, Web application development, WordPress, jQuery, XSS and more.

Updated on June 04, 2022

Comments

  • Arjun Jain
    Arjun Jain over 1 year

    I want to create the window executable file of my project , I don't want to share the source code my project . i want to know where i started or which tool I use to create complete software . I use linux , py2exe does not run in linux,is there any other tool which is similar to py2exe?

    • David Heffernan
      David Heffernan over 12 years
      py2exe doesn't really hide your source code
    • Blender
      Blender over 12 years
      You can't hide your source code. If someone really wants to decompile your program, they'll do it. And Python is much easier to decompile than C++ and C, as it's "binaries" are pretty descriptive, so there's really no use in trying to hide the source. Py2exe just packages the generated binaries, so if I can extract your exe file, I can decompile your program with ease.
    • Arjun Jain
      Arjun Jain over 12 years
      @Blender how to hide the sourse code or how to make the trial version of my software . can you provide me the link to any website or book from where i read the complete software development process
    • Blender
      Blender over 12 years
      You can't. Read this question for more details as to why: stackoverflow.com/questions/261638/how-do-i-protect-python-c‌​ode
    • Admin
      Admin over 12 years
      If that's the question, there are countless duplicates (stackoverflow.com/questions/261638/how-do-i-protect-python-‌​code being the most popular canidate) - so, is that the case?
    • Blender
      Blender over 12 years
      It's a mix of that and stackoverflow.com/questions/2709925/…. I'm not sure if you can call it a duplicate, but I'll flag it.
    • Arjun Jain
      Arjun Jain over 12 years
      thanks blender this help alot
    • Marc Gravell
      Marc Gravell over 12 years