cx-freeze

installing cx_Freeze to python at windows

时光毁灭记忆、已成空白 提交于 2019-11-28 17:31:48
I am using python 3.4 at win-8. I want to obtain .exe program from python code. I learned that it can be done by cx_Freeze. In MS-DOS command line, I wrote pip install cx_Freeze to set up cx_Freeze. It is installed but it is not working. (When I wrote cxfreeze to command line, I get this warning:C:\Users\USER>cxfreeze 'cxfreeze' is not recognized as an internal or external command,operable program or batch file.) (I also added location of cxfreeze to "PATH" by environment variables) Any help would be appriciated thanks. I faced a similar problem (Python 3.4 32-bit, on Windows 7 64-bit). After

How can I hide the console window when freezing wxPython applications with cxFreeze?

梦想与她 提交于 2019-11-28 16:32:38
I'm developing a Python application using wxPython and freezing it using cxFreeze. All seems to be going fine apart from this following bit: When I run the executable created by cxFreeze, a blank console window pops up. I don't want to show it. Is there any way I could hide it? It doesn't seem to be documented on the cxFreeze site and Googling didn't turn up much apart from some similar sorta problems with Py2Exe. Thanks. Mridang Agarwalla This worked to some extent but it has issues. My program runs in both a console mode and a GUI mode. When run from the console with a --console argument it

Error building executable with cx_Freeze: IndexError: tuple index out of range

你说的曾经没有我的故事 提交于 2019-11-28 14:46:00
Background I have made a program that I am trying to turn into an executable using CX_Freeze. The setup.py file is placed inside the same directory as all files I am working with. I don't use any extra libraries other than TKinter and OS. The program works perfectly fine normally when I run it via PyCharm>Run Version Numbers cx_Freeze ver: - 5.0 cx_Freeze .whl: - cx_Freeze-5.0-cp36-cp36m-win_amd64.whl python ver: - 3.6.0b4 pycharm ver: - 2016.3.1 This is my setup.py file import cx_Freeze import sys from cx_Freeze import setup, Executable base = None if sys.platform == 'win32': base = "Win32GUI

creating .exe file with cx_freeze for a tkinter interface

[亡魂溺海] 提交于 2019-11-28 13:54:50
I have searched for this answer all around the place, but i can't find an answer. I have a python script (3.3) that has an interface with tkinter. I used cx_freeze to create an executable out of it, got a build folder with some files and folders in it. I double clicked on the .exe file and nothing happened. I'm using the following setup: import sys from cx_Freeze import setup, Executable base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "simple_Tkinter", version = "0.1", description = "Sample cx_Freeze Tkinter script", executables = [Executable("the timer.py", base = base

Images not showing when running a frozen pyqt app on another computer

北慕城南 提交于 2019-11-28 11:37:06
I have a PyQt4 program that I froze using cx_freeze. The problem I am having is when I make a QGraphicsPixmapItem, which it is getting its' pixmap made from a SVG file, the Item gets made no problem, but the Pixmap doesn't load so there is no image just the item in the scene. The thing that confuses me is that this only happens when I am running it on a different computer than the one that built the exe. When I run the exe on the computer that built it the program works perfectly. Even when I try to run it on a computer with all the required python components and pyqt components installed on

from . import _methods ImportError: cannot import name '_methods' in cx-freeze python

余生颓废 提交于 2019-11-28 10:52:39
exe build successfully by using cx-freeze. But it shows the following error when I execute the exe file: from . import _methods ImportError: cannot import name '_methods' Rodolfo This question was already answer here: Why am I getting this ImportError? but for the sake of completeness here is the answer for this specific case: cx_freeze is not importing the optional module _method , so you have to tell him explicitly to do it. additional_mods = ['numpy.core._methods', 'numpy.lib.format'] setup(name='xyz', version='0.4', description='xyz script', options = {'build_exe': {'includes': additional

How can I include a folder with cx_freeze?

北战南征 提交于 2019-11-28 10:48:37
I am using cx_freeze to deploy my application. I would like to include a entire directory since including individual files doesn't put them in a folder. How can I include a folder? Ecno92 You have to set up an include files argument for the building options. You can do this in different ways, but I will show a part of my configuration. The thing I describe here is for one specific file and one specific destination. I think you can also set a path like this, but I don't have tested this yet. Edit: Tested this, so choose the right approach for your project. buildOptions = dict(include_files = [

Cx_freeze ImportError no module named scipy

十年热恋 提交于 2019-11-28 08:44:11
Good day all, I am having trouble using cx_Freeze on a code I am working on converting to a .exe. When I run cx_Freeze I get the following ImportError that there no no module named scipy running install running build running build_exe Traceback (most recent call last): File "setup.py", line 25, in <module> executables = executables File "C:\Python34\lib\site-packages\cx_Freeze\dist.py", line 362, in setup distutils.core.setup(**attrs) File "C:\Python34\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands self.run

cx-freeze doesn't find all dependencies

心不动则不痛 提交于 2019-11-28 07:47:16
I have a python script (2.7) with some "interesting" imports at the top. I initially wanted to use py2exe to compile this into an exe that I can more easily distribute ( py2exe doesn't find all dependencies ). I have given up and am trying to use cx-freeze instead. But, I am having problem there as well. The problems seem to be libraries I have added to Python (jinja2 and restkit). I see them in my python directory ./Lib/site-packages/Jinja2-2.6-py2.7.egg/jinja2 and here ./Lib/site-packages/restkit-4.2.1-py2.7.egg/restkit. Here are the imports in my script: import datetime from jinja2 import

python: Can I run a python script without actually installing python?

帅比萌擦擦* 提交于 2019-11-28 06:48:45
I have some .py files I wrote that I want to run on a different machine. The target machine does not have python installed, and I can't 'install' it by policy. What I can do is copy files over, run my stuff, and then remove them. What I tried was to just take my development python folder over to the target machine and cd to the python folder and run python.exe /path/to/.py/file . It gave me an error saying that python.dll was not registered. If I registered the DLL that is probably going to move me to far across the 'violating policy' line. Is there anyway I can accomplish running python files