how to use cx_freeze in linux to create a package to be used in windows

后端 未结 3 1964
别跟我提以往
别跟我提以往 2021-01-02 18:18

how to use cx_freeze in linux to create a one package to be used in windows like .exe or .bin file. I tested cx_freeze in linux but that make package for linux and in window

相关标签:
3条回答
  • 2021-01-02 18:20

    I've been trying to get cx_freeze properly working on windows in every way possible but with no luck...I was trying to do what you are doing now using Ubuntu but I found this, sadly: https://cx_freeze.readthedocs.org/en/latest/faq.html#problems-with-running-frozen-programs

    " Freezing for other platforms

    cx_Freeze works on Windows, Mac and Linux, but on each platform it only makes an executable that runs on that platform. So if you want to freeze your program for Windows, freeze it on Windows; if you want to run it on Macs, freeze it on a Mac.

    At a pinch, you can try to make a Windows executable using Wine. Our experience is that you need to copy some files in manually after cx_Freeze has run to make the executable work. We don’t recommend this option. " I guess the only option is to try doing it with wine? Have you had any luck?

    0 讨论(0)
  • 2021-01-02 18:41

    Did you saw this? Maybe this is making you trouble: "Python on Windows requires the Microsoft Visual C++ Redistributable Package. Python 2.6-3.2 uses the 2008 version, and because of how this is installed, cx_Freeze doesn’t automatically copy it for your application."

    http://cx-freeze.readthedocs.org/en/latest/faq.html#microsoft-visual-c-redistributable-package

    Anyway, using this tool (cx_freeze) is so complicated and inefficient that it is probably more easy to write a whole program than to convert it properly to windows executable. I really hope that someone in future will write a more concise and simple convert tool for Python 3.

    0 讨论(0)
  • 2021-01-02 18:45

    cx_freeze should work cross-platform as stated in the site :

    cx_Freeze is cross platform and should work on any platform that Python itself works on

    (I haven't tried in linux though) but you can find a easy explanation over here

    0 讨论(0)
提交回复
热议问题