py2exe

Process to convert simple Python script into Windows executable [duplicate]

一曲冷凌霜 提交于 2019-11-26 03:48:57
问题 This question already has an answer here: Create a single executable from a Python project 2 answers I wrote a script that will help a Windows user in her daily life. I want to simply send her the .exe and not ask her to install python, dlls or have to deal with any additional files. I\'ve read plenty of the stackoverflow entries regarding compiling Python scripts into executable files. I am a bit confused as there are many options but some seem dated (no updates since 2008) and none were

Py2exe for Python 3.0

老子叫甜甜 提交于 2019-11-26 03:42:59
问题 I am looking for a Python3.0 version of \"py2exe\". I tried running 2to3 on the source for py2exe but the code remained broken. Any ideas? 回答1: Update 2014-05-15 py2exe for Python 3.x is now released! Get it on PyPI. Old information Have a look at the py2exe SourceForge project SVN repository at: http://py2exe.svn.sourceforge.net/ The last I looked at it, it said the last update was August 2009. But keep an eye on that to see if there's any Python 3 work in-progress. I've also submitted two

Python - IndexError: tuple index out of range when using py2exe

放肆的年华 提交于 2019-11-26 03:37:58
问题 I\'m currently trying to make an executable using py2exe. I use Python 3.6. The script I\'m using imports openpyxl and pptx and runs fine when I use Pycharm or run the script using the command window. The output produces the error: IndexError: tuple index out of range Below you can find the cmd output: C:\\Python36>python setup.py py2exe running py2exe Traceback (most recent call last): File \"setup.py\", line 4, in <module> setup(console=[\'Storybookmaker.py\']) File \"C:\\Python36\\lib\

Python - IndexError: tuple index out of range when using py2exe

假装没事ソ 提交于 2019-11-26 03:11:14
问题 I\'m currently trying to make an executable using py2exe. I use Python 3.6. The script I\'m using imports openpyxl and pptx and runs fine when I use Pycharm or run the script using the command window. The output produces the error: IndexError: tuple index out of range Below you can find the cmd output: C:\\Python36>python setup.py py2exe running py2exe Traceback (most recent call last): File \"setup.py\", line 4, in <module> setup(console=[\'Storybookmaker.py\']) File \"C:\\Python36\\lib\

How to call python script on excel vba?

跟風遠走 提交于 2019-11-26 02:55:13
问题 trying to call a python script on Vba and I am a newb. I tried converting the main script to an exe using py2exe and then calling it from VBA (shell) but the main script calls other scripts therefore it becomes complicated and I messed it up (my exe is not functional). Besides, the the main script is a large file and I do not want to revise it a lot. Bottomline, is there a way to call the main script from excel vba, without converting the script to an exe file. So far, I tried: RetVal = Shell

How can I convert a .py to .exe for Python?

会有一股神秘感。 提交于 2019-11-25 22:49:15
问题 I\'m trying to convert a fairly simple Python program to an executable and couldn\'t find what I was looking for, so I have a few questions (I\'m running Python3.6): The methods of doing this that I have found so far are as follows downloading an old version of Python and using pyinstaller/py2exe setting up a virtual environment in 3.6 that will allow me to do 1. downloading a Python to C++ converter and using that. Here is what I\'ve tried/what problems I\'ve run into. I installed

py2exe - generate single executable file

妖精的绣舞 提交于 2019-11-25 22:00:26
问题 I thought I heard that py2exe was able to do this, but I never figured it out. Has anyone successfully done this? Can I see your setup.py file, and what command line options you used? Basically I\'m thinking of it giving me a single executable file that does something like unzips itself to maybe /temp and runs. 回答1: PyInstaller will create a single .exe file with no dependencies; use the --onefile option. It does this by packing all the needed shared libs into the executable, and unpacking