Questions tagged [py2exe]

Py2exe is a python extension that converts Python Scripts to Windows Executables.

py2exe is a extension which converts Python scripts (.py) into Windows executables (.exe). These executables can run on a system without Python installed. It is the most common tool for doing so.

py2exe was used to distribute the official BitTorrent client (prior to version 6.0) and is still used to distribute SpamBayes as well as other projects.

Resources

1654 questions
9
votes
1 answer

Creating an Exe with Selenium Module: Py2exe/Pyinstaller

I've looked everywhere. Stackoverflow, various messageboards, the py2exe website, the pyinstaller website...nothing is helping. Including the selenium module, particularly making an exe that supports firefox, seems impossible. I am starting to pull…
ohbrobig
  • 939
  • 2
  • 13
  • 34
9
votes
2 answers

cx_freeze - including my own modules?

I have a small application built with PyQt4 that I'm trying to freeze with cx_freeze, but I'm running into an issue with cx_freeze including some of my own modules that are required for the application to work. I have two modules that are imported…
dan_g
  • 2,712
  • 5
  • 25
  • 44
9
votes
1 answer

Using Numpy creates a tcl folder when using py2exe

When using py2exe on my Python program I get an executable, but also a tcl\ folder. This is strange, because I don't use tcl/tk at all and nothing related to tkinter in my code. Why importing numpy is responsible for adding this tcl\ folder ? How…
Basj
  • 41,386
  • 99
  • 383
  • 673
9
votes
2 answers

Using py2exe in a virtualenv

I have a Python script I developed within a virtualenv on Windows (Python 2.7). I would now like to compile it into a single EXE using Py2exe. I've read and read the docs and stackoverflow, and yet I can't find a simple answer: How do I do this? I…
ezuk
  • 3,096
  • 3
  • 30
  • 41
9
votes
2 answers

Making a Windows .exe with gui2exe does not work because of missing MSVCP90.dll

I'm trying to compile my python script into a single .exe using gui2exe (which uses py2exe to create a .exe). My program is using wxWidgets and everytime I try to compile it I get the following error message: error MSVCP90.dll: No such file or…
Kredns
  • 36,461
  • 52
  • 152
  • 203
9
votes
1 answer

py2exe can't find msvcp90.dll

I'm working on converting a simple GUI script written with Python 2.7 and Pyqt4 into a standalone executable using py2exe. I keep getting "no such file exists" errors, and I've managed to fix a few, though this one seems stubborn. It can't find…
bythenumbers
  • 155
  • 1
  • 3
  • 10
8
votes
1 answer

making exe file from python that uses command line arguments

I want to create an exe from a python script that uses command line arguments (argv) From what I've seen py2exe doesn't support command-line-arguments What can I do? EDIT: I was using a GUI2Exe tool, so I just missed the Console flag, but the…
Boaz
  • 4,864
  • 12
  • 50
  • 90
8
votes
4 answers

load pyd files from a zip from embedded python

I can load Python modules (.py, .pyc, .pyd) from a zip file by calling "import some_module" from a Python interpreter only after sys.path has been extended to include the zip file and only after I have run import…
Alex van Houten
  • 308
  • 3
  • 17
8
votes
1 answer

py2exe mac os x install trouble

I really do not know what's wrong! I tried to install py2exe on my mac but got lots of errors! Output is here because it's very long: http://pastebin.com/Ls96ythJ What I need to do? Maybe it's because I'm using Lion? Help me please! Thanks!
HiTECNOLOGYs
  • 327
  • 5
  • 21
8
votes
4 answers

py2exe throws ImportError: DLL load failed: The specified module could not be found

I cannot seem to get py2exe to work properly. I have run "python setup.py py2exe" in cmd, as well as "python setup.py install"... and When I try to run my executable setup, I get this same error over and over: After a week I'm starting to get…
Skizz
  • 1,405
  • 2
  • 11
  • 12
8
votes
2 answers

Is it possible to build exe on Vista and deploy on XP using py2exe

I have created some program using python on Windows Vista. But I want to deploy it on Windows XP. Is it necessary to make new build on windows XP? Or there is possibility to make build that will work on both of these systems? EDIT (EDIT 2 - very…
dfens
  • 5,413
  • 4
  • 35
  • 50
8
votes
5 answers

PyQt/PySide - icon display

I have a PySide app which has an icon for the MainWindow (a QMainWindow instance). When I run the file normally, the icon is visible and everything is fine but when I create an exe with py2exe, the icon does not appear. This happens with cx_freeze…
user547057
  • 313
  • 3
  • 10
8
votes
1 answer

Creating executable from Python script while acquiring small output size

My question might already have been answered somewhere but still, I can't find a straightforward answer to it yet. I want to create a standalone executable from python code. I've already tried a bunch of solutions like py2exe, pyinstaller, etc. But…
Masoud Rahimi
  • 5,785
  • 15
  • 39
  • 67
8
votes
1 answer

py2exe File "numpy\core\multiarray.pyc", line 10, in __load ImportError: DLL load failed:

System: Windows 7 64-bit Anaconda 2.7 64-bit py2exe 64-bit Background: I converted my python code to .exe using py2exe and setup.py file shown below: from distutils.core import setup import py2exe from distutils.filelist import findall import…
8
votes
1 answer

py2exe the following modules appear to be missing

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',…
Nerotix
  • 365
  • 4
  • 17