py2exe

Using Py2Exe without command line

混江龙づ霸主 提交于 2019-12-23 02:03:36
问题 Is it possible to compile a python script with py2exe without calling py2exe from the command line? >Python setup.py py2exe I'd like to run it all from a script, but haven't found a way to do so. 回答1: at the beginig of the setup.py import sys if len(sys.argv) == 1: sys.argv.append("py2exe") this way, if setup.py is called without args or with a double click, it will start the packaging 来源: https://stackoverflow.com/questions/15551527/using-py2exe-without-command-line

Look of the app - Py2exe / wxPython

Deadly 提交于 2019-12-22 18:38:20
问题 So my problem is the look and feel from my application, as it looks like an old look app. It is an wxPython application, and on python it runs fine and looks fine, but when I convert it to .exe using py2exe, the look is just bad. Now I know that if you are using XP you need some manifest to correct it but I am in other circumstances. I'm using Windows 7, and I'm using Python 2.6 (Yes, I am including the DLL's and the Microsoft.VC90.CRT.manifest). So my question is how can I solve this under

How to package psutil with py2exe?

帅比萌擦擦* 提交于 2019-12-22 11:08:00
问题 The app is working fine on my development win8 environment, but when it is packaged with py2exe and run on the production machine it throw the exception: "The procedure entry point RtlIdnToAscii could not be located in the dynamic link library ntdll.dll" The detail content of the log file is Traceback (most recent call last): File "DataviewerBackupRestorer.py", line 6, in <module> File "RestorController.pyc", line 7, in <module> File "psutil\__init__.pyc", line 136, in <module> File "psutil\

Compile numpy WITHOUT Intel MKL/BLAS/ATLAS/LAPACK

限于喜欢 提交于 2019-12-22 08:48:21
问题 I am using py2exe to convert a script which uses numpy and am getting a very large resulting folder, and it seems a lot of the large files are from parts of the numpy package that I'm not using, such as numpy.linalg . To reduce the size of folder that is created, I have been led to believe I should have numpy compiled without Intel MKL/BLAS/ATLAS/LAPACK. How would I make this change? EDIT In C:\Python27\Lib\site-packages\numpy\linalg I found the following files: _umath_linalg.pyd (34MB) and

Python 3.4 multiprocessing does not work with py2exe

╄→гoц情女王★ 提交于 2019-12-22 08:11:24
问题 This is pretty much the same as this question, but the given solution there (calling freeze_support()) does not work for me. I have the following script called start.py that I use to build a standalone executable with py2exe (version 0.9.2.2). I also have python.exe in the same directory. import multiprocessing def main(): print('Parent') p = multiprocessing.Process(target=new_process) multiprocessing.set_executable('python.exe') p.start() p.join() def new_process(): print('Child') if __name_

convert python programme to windows executable

纵饮孤独 提交于 2019-12-22 05:45:16
问题 i m trying to create windows executable from python program which has GUI . i m using following script from distutils.core import setup import py2exe setup(console=['gui.py']) it gives following error Warning (from warnings module): File "C:\Python27\lib\distutils\dist.py", line 267 warnings.warn(msg) UserWarning: Unknown distribution option: 'console' Traceback (most recent call last): File "E:\my python\py2exe.py", line 3, in <module> import py2exe File "E:\my python\py2exe.py", line 5, in

py2exe the following modules appear to be missing

 ̄綄美尐妖づ 提交于 2019-12-22 05:04:20
问题 As the title says, when I'm trying to use py2exe to create a Windows executable file, I get this error: The following modules appear to be missing ['Carbon', 'Carbon.Files', 'ElementC14N', 'OpenSSL.SSL', '_frozen_importlib', '_imp', '_scproxy', '_sysconfigdata', 'backports.ssl_match_hostname', 'builtins', 'certifi', 'charade.universaldetector', 'configparser', 'datrie', 'genshi.core', 'html', 'html.entities', 'html.parser', 'http', 'http.client', 'http.cookies', 'http.server', 'importlib

py2exe `ImportError: No module named backend_tkagg`

∥☆過路亽.° 提交于 2019-12-22 04:09:48
问题 I am trying to make a windows executable from a python script that uses matplotlib and it seems that I am getting a common error. File "run.py", line 29, in import matplotlib.pyplot as plt File "matplotlib\pyplot.pyc", line 95, in File "matplotlib\backends__init__.pyc", line 25, in pylab_setup ImportError: No module named backend_tkagg The problem is that I didn't found a solution while googling all over the internet. Here is my setup.py from distutils.core import setup import matplotlib

py2exe with enthought and pandas

五迷三道 提交于 2019-12-21 22:58:18
问题 I am trying to make an executable with python, py2exe using Enthought . The program.py starts with: import pandas as pd import pyper as pr r=pr.R(use_pandas=True) The setup.py is as below: from distutils.core import setup import py2exe import matplotlib import sys opts={"py2exe":{"bundle_files"}} sys.argv.append('py2exe') opts = {'py2exe': {"bundle_files" : 3, "includes" : [ "matplotlib.backends", "matplotlib.backends.backend_qt4agg", "pylab","numpy", "matplotlib.backends.backend_tkagg"],

How to make a .exe for Python with good graphics?

岁酱吖の 提交于 2019-12-21 19:58:48
问题 I have a Python application and I decided to do a .exe to execute it. This is the code that I use to do the .exe: # -*- coding: cp1252 -*- from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') setup( options = {'py2exe': {'bundle_files': 1}}, windows = [{'script': "SoundLog.py"}], zipfile = None, packages=[r"C:\Users\Public\SoundLog\Code\Código Python\SoundLog\Auxiliar", r"C:\Users\Public\SoundLog\Code\Código Python\SoundLog\Plugins"], ) But when I run my