Has anyone successfully created a Windows executable file using py2exe, cx_Freeze or Pyinstaller under Wine from a Linux machine?
My goal is to be able to just push the code to a gitolite repository Ubuntu server then a git-hook will build the exe for windows and publish them for distribution. I've tried using cx_Freeze to no avail; pyinstaller seems to work but needs pywin32 which crashed during installation in wine.
If someone has successfully done so, how did you do it and did you have to install all the Python modules that were required by the application to be "compiled" for the wine-python installation? The specific application for which I want a windows exe is the Tryton Client.
Acсording to py2exe wiki, it produces invalid Win32 executables.
Related
Is it possible to build and debug python executable(python interpreter) from source code with Xcode on MacOS?
I have an iMac which with MacOS 10.13.6 and Xcode 9.4.1 installed. I downloaded source code of python 3.7.1 from www.python.org, and want to build and debug python executable(python interpreter) itself by Xcode. But I can’t find any Xcode project file in python source code, I just found project files for Visual Studio in PCbuild folder.
Or except Xcode, is there any other C/C++ IDE in MacOS can be used for building and debugging Python interpreter?
Can anybody tell me how can I do?
If you want to use python, Xcode only uses Swift and c++. Try PyCharm on https://www.jetbrains.com/
No it is not. Xcode is for ObjC and Swift only.
Use PyCharm: https://www.jetbrains.com/pycharm/
I want to develop gui app with python tkinter on windows.
I want to use fork system call. But windows does not support fork
Then its app packaging as .exe file with pyinstaller.
Is there any way to use fork on windows?
I suppose to use mingw or cygwin but I do not know how I do compile python and create windows .exe file on these environment.
I am using:
Python 3.6.4
Windows10 1709
I have been trying to package my python scripts into .exe setup for Windows. Is that any way I can do the same while running Ubuntu?
cx_freeze is another option for freezing cross-platform.
I have a tiny (70 lines) python script and I need an executable which includes all the dependencies of the script. It should be usable on windows, where python-magic is only usable in connection with cygwin.
Now I've tried to use Nuitka, which gives me a 6MB executable, however it's not executable on windows, as it states it's not a valid executable, without any further information on why it's not.
Then I've been told to try cx_freeze, which I'm unable to install. Pip states my python version is incompatible. (tried it with pip and pip3 and python is installed..)
How could I get an executable for windows, including all dependencies from my python script written on a Unix system.
Windows system: Windows 8.1 64bit
Unix system: Debian Testing; Python 2.7 and 3.4 installed
I'm using python 2.7 on windows 8.1 and pyinstaller works perfectly fine.
If you want to compile an exe file which can be ported without any DLL files or anything you should use the following pyinstaller command:
python pyinstaller.py --onefile your_script_file.py
Try Pyinstaller, it is very useful to make any executable. And If you need a windows executable you have to compile it on Windows!
I tried to configure the PyQt >= 4.7 on windows . but i was unable to configure it with ninja IDE source code, when i trying to run the IDE it gives an error as below:
ImportError: No module named PyQt4.QtCore`
how to run the ninja IDE source and configure the PyQt on windows?
I've installed Ninja IDE on two Windows machines, a Windows 7 machine with only standard Python 3 installed where it gives me that error you mentioned.
And a Windows XP machine on which I had pythonxy which comes with PyQt in a convenient easy to use installer thus it worked without any further troubles.
I am having the same problem on Ubuntu: installing the PyQt packet from source solved it. I assume that Ninja-IDE needs these packets to be installed as a prerequisite.