cx-freeze

cx_Freeze and moving files around

旧时模样 提交于 2020-01-03 18:44:08
问题 In cx_Freeze, is it possible to move all pyd files and the library.zip to some subdirectory? I can live with two dlls along with the exe but I'd rather hide 15 other files from my users, even if only in a subdirectory. 回答1: That appears to be impossible. Use PyInstaller, py2exe, or py2app if possible. See also py2exe - generate single executable file. 来源: https://stackoverflow.com/questions/4381470/cx-freeze-and-moving-files-around

How do I run a Python 3.5 program that uses Tkinter on a computer without Python installed?

浪子不回头ぞ 提交于 2020-01-03 05:40:06
问题 I have coded a program in Python 3.5 that uses the Tkinter import. I'm trying to figure out a way to run it on computers that don't have Python. First I tried freezing it but I haven't been able to because none of the freezing tools I found support Python 3.5. Then I tried possibly using a online idle but I couldn't find any that support Tkinter. I would prefer to be able to get a .exe file or something similar but if I could run it online that would be good too any ideas? EDIT So I have now

Issue packaging scrapy spider with cx_Freeze or py2exe

拈花ヽ惹草 提交于 2020-01-03 05:34:08
问题 I've created a scraper with Scrapy and wxPython which works as expected, exporting a file with results to the desktop in CSV format. I'm attempting to package this into an executable with cx_Freeze using the below command prompt line: cxfreeze ItemStatusChecker.py --target-dir dist This seems to work fine, building the dist directory with ItemStatusChecker.exe However, when I open ItemStatusChecker.exe, I get the below error in the command prompt and my GUI does not launch: Traceback (most

Error in cx_freeze Build

这一生的挚爱 提交于 2020-01-03 03:26:08
问题 I am using cx_freeze to bundle my app. I have 2 questions. 1) I am using OSX Mountain Lion - the /build/exe.macosx-10.8-x86_64-2.7 that I have - will it contain executables for Windows, Linux as well - and if so, where in the list can I find it? My original script is cpu.py. The dir contains a lot of ".so" files and 1 "cpu" file. 2) When I try "cpu" from the list above, I get this output. 'psutil' is a Python module required for the script - cpu.py. Desktop/build/exe.macosx-10.8-x86_64-2.7

Python 3 executable as windows service

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 02:48:26
问题 I'm trying to write a windows Service in python, but the tricky part is i want to deploy it on a machine that doesn't have python. I've successfully created a service like this, and it works if i run from my machine. the problem starts when i try to convert it to an exe and then try to install it. first i tried to use cx_freeze service example, (seen here), the setup.py look like this : from cx_Freeze import setup, Executable options = {'build_exe': {'includes': ['ServiceHandler']}}

python cx_freeze problem ascil

家住魔仙堡 提交于 2019-12-30 14:49:09
问题 I want to make EXE file by use py2exe or cx_freeze . so I was try to make exe file with py2exe but no luck. so now I was test with cx_freeze but it also failed. if anyone can help me much apprecaite following is setup.py file in cx_freeze from cx_Freeze import setup, Executable copyDependentFiles=True silent = True includes = ["lxml", "lxml._elementpath", "lxml.etree", "gzip", "encodings.cp949", "encodings.utf_8", "encodings.ascii"] setup(name='gearfacts', options = { "build_exe" : {

importError: no module named _winreg python3

巧了我就是萌 提交于 2019-12-30 07:53:28
问题 Where can I download _winreg for python3 if I can at all. I have my 'windir' on E:\Windows. I do not know if cx_Freeze did not notice that. I am using cx_Freeze to create an msi installer. 回答1: As it says in the _winreg documentation, it has been renamed to winreg in Python 3.0. You should run the 2to3 tool if you're converting code that was written for Python 2.x. 回答2: I know this is an old question, but this was the first search result when Googling for ModuleNotFoundError: No module named

exe built with cx_Freeze, PyQt5, Python3 can't import ExtensionLoader_PyQt5_QtWidgets.py and run

邮差的信 提交于 2019-12-30 07:44:54
问题 I'm trying to pack my app Python3, PyQt5 for Windows using cx_Freeze. I've installed Python 3.4.3, Python-win32, PyQT5, cxfreeze. Application itself, run in console, works fine. I try to pack it with cx_freeze: python setup.py build_exe. It works on the same host. But when I move it to another clean installation WinXP it gives an error: Traceback: File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27 in <module> File "pyftp1.py" in 7, in <module> File "c:\python\32

Can I make a 32-bit program with cx_Freeze if I have a 64-bit OS?

痞子三分冷 提交于 2019-12-30 06:04:11
问题 I am currently running Windows 7 Home 64-bit and am working on a program that I would like to make available for both 32-bit and 64-bit Windows operating systems. When I use cx_Freeze to turn my .py to a .exe, it only allows it to be installed on 64-bit operating systems. Would I need to buy a 32-bit computer to convert it to a 32-bit program or are there a special set of commands I can use to make cx_Freeze create both a 32-bit and a 64-bit exe? from cx_Freeze import * import sys base = None

Pygame - Compiling to exe with Cx_Freeze

随声附和 提交于 2019-12-29 09:19:08
问题 I'm trying to convert my pygame game to exe with Cx_freeze; It works fine when I run it from a script, but when I run it as an exe, it crashes with a: Traceback (most recent call last): File "C:\Python32\lib\site-packages\pygame\__init__.py", line 122, in <module> try: import pygame.display File "ExtensionLoader_pygame_display.py", line 12, in <module> File "ExtensionLoader_pygame_surface.py", line 12, in <module> ImportError: No module named _view During handling of the above exception,