py2exe

Is there a py2exe version that's compatible with python 3.5?

筅森魡賤 提交于 2019-12-17 18:23:05
问题 I am trying to compile my python 3.5 file with the latest py2exe version 0.9.2.2 with the following command: py -3.5 -m py2exe.build_exe myscript.py But it reports this: "run-py3.5-win-amd64.exe" file is not found in the ...lib\site-packages\py2exe\ folder. Does this mean that py2exe 0.9.2.2 is only compatible up to python 3.4? 回答1: Unfortunately as of November 2016 there is still no Python 3.5 support in sight for py2exe. However, I've had great success using cx_Freeze 5.0 with Python 3.5

scipy with py2exe

孤者浪人 提交于 2019-12-17 10:50:00
问题 I get the following error message using python v2.7.3 and scipy v0.11.0 with py2exe v0.6.10 on a 64 bit machine using 64 bit versions of the packages from Christoph Gohlke. If anyone can provide relevant and useful suggestions I would greatly appreciate it. Here is the error message: Traceback (most recent call last): File "test2.py", line 4, in <module> File "scipy\sparse\__init__.pyo", line 191, in <module> File "scipy\sparse\csgraph\__init__.pyo", line 146, in <module> File "scipy\sparse

py2exe fails to generate an executable

守給你的承諾、 提交于 2019-12-17 06:28:14
问题 I am using python 2.6 on XP. I have just installed py2exe, and I can successfully create a simple hello.exe from a hello.py. However, when I try using py2exe on my real program, py2exe produces a few information messages but fails to generate anything in the dist folder. My setup.py looks like this: from distutils.core import setup import py2exe setup(console=['ServerManager.py']) and the py2exe output looks like this: python setup.py py2exe running py2exe creating C:\DevSource\Scripts

Running compiled python (py2exe) as administrator in Vista

冷暖自知 提交于 2019-12-17 06:13:26
问题 Is it possible to programaticly run compiled Python (comiled via py2exe) as administrator in Vista? Some more clarification: I have written a program that modifies the windows hosts file (c:\Windows\system32\drivers\etc\hosts) in Vista the program will not run and will fail with an exception unless you right-click and run as administrator even when the user has administrator privileges, unlike in XP where it will run if the user has administration rights, so I need a way to elevate it to the

Cross-compiling a Python script on Linux into a Windows executable

北城余情 提交于 2019-12-17 03:31:29
问题 I have a Python script that I'd like to compile into a Windows executable. Now, py2exe works fine from Windows, but I'd like to be able to run this from Linux. I do have Windows on my development machine, but Linux is my primary dev platform and I'm getting kind of sick of rebooting into Windows just to create the .exe . Nor do I want to have to buy a second Windows license to run in a virtual machine such as VirtualBox. Any ideas? PS: I am aware that py2exe doesn't exactly compile the python

Py2Exe and Easgui

旧时模样 提交于 2019-12-14 02:36:19
问题 I am trying to convert a py file to an exe. Here is the code for my setupfile from distutils.core import setup import py2exe setup(console=["mycode.py"]) When I use cmd, it says: Import Error: No module named easygui How do I let py2exe know about the easygui? As well as the numpy and mathplotlib (all are used in mycode.py) 回答1: First, use pyinstaller. It is newer and better (though I have used py2exe until switching to pyinstaller) And it seems to have much better recipes for finding your

When I try to compile and .exe I get ImportError: No module named six

限于喜欢 提交于 2019-12-14 02:26:17
问题 I've tried making an exe from a program using py2exe, cx_freeze and pyinstaller. All of which give me an error 'ImportError: No module named six' when I go to launch the .exe The .exe is able to be created. I've looked through the forums and all of them say to pip install six (it's already installed). I've tried uninstalling and re-installing six. One post mentioned uninstalling matplotlib, so I did that. When I instlalled pyinstaller one of the requirements was that six be installed! So this

Python subprocess.call on sfxcl.exe not working from Windows 2003 Task Scheduler

佐手、 提交于 2019-12-13 19:25:19
问题 I have written a script in Python to call SecureFX's commandline tool (sfxcl.exe) result = subprocess.call([securefx, '/NoPrompt', '/Q', '/RetryCount', retries, '/RetryDelay', '1', '/Log', sfxLogFile, '/List', '/S', session]) and then converted it into .exe using py2exe. I can schedule it locally on my WinXP machine and everything works OK. When I run it manually on the Win2003 environment, it also works. BUT when I schedule it using Windows Task Scheduler in Win2003, it runs through the

Python 64 bit DLL COM Server Registration Problem on 64 bit Windows 7

五迷三道 提交于 2019-12-13 17:44:44
问题 I am trying to create a simple COM server using Python 2.7 on 64 bit Windows 7, but I can't get the DLL registered successfully. I am able to do this successfully using Python 2.6 on 32 bit Windows XP. I am also able to register my class directly from Python. This is my module, heikki.py, based on the pywin32 COM tutorial: class Heikki: _reg_clsid_ = '{F4C7D945-BF6B-4BF8-BCBB-EA021FCCE623}' _reg_desc_ = "Heikki" _reg_progid_ = "Heikki.TestServer" _public_methods_ = ['Hello'] def __init__(self

how to reduce size of exe using py2exe

别等时光非礼了梦想. 提交于 2019-12-13 11:48:36
问题 I developed a small program using python and wxwidgets. It is a very simple program that uses only a mini frame to display some information when needed, and the rest of the time it shows nothing, only an icon in the taskbar. When I build the exe using py2exe (single file exe mode, optimized), I get a 6MB size file! I tried not including some libraries or dll that were not needed but still, I can't see why I get such a big file for just a mini frame and an icon in the taskbar. Is there any way