Py2exe

 
Latest version
  1. Py2exe Mac
  2. Py2exe Missing Modules

Released:

Converts .py to .exe using a simple graphical interface.

Source Using py2exe the right way March 03, 2014. Hi guys how are you? I hope all of you are fine. Recently I was working on a PyQt project. The project was youtube-dl-GUI.It is a GUI for the ever popular youtube-dl project. Py2exe can create a single file executable if you specify a few arguments in the compiler program. Py2exe has a tutorial for single file executables online. – trevorKirkby Dec 9 '13 at 21:41 3 Objective Viewpoint: I do not see how this is an acceptable answer since it does not address the question of creating a single exe file with py2exe.

Project description

A .py to .exe converter using a simple graphical interface and PyInstaller in Python.

Py2exe Mac

阅读中文版的README ,点击 这里

Getting Started

Prerequisites

  • Python : 3.5-3.9
Py2exe

To have the interface displayed in the images, you will need chrome. If chrome is not installed or --no-chrome is supplied, the default browser will be used.

As of PyInstaller 4.0, Python 2.7 is no longer supported. Read 'Python 2.7 Support' below for steps on how to use this tool with Python 2.7.

Installation and Usage

Installing Via PyPI

You can install this project using PyPI:

Then to run it, execute the following in the terminal:

Installing Via GitHub

Then to run it, execute the following in the terminal:

Running Locally Via Github (no install)

You can run this project locally by following these steps:

  1. Clone/download the repo
  2. Open cmd/terminal and cd into the project
  3. Execute python -m pip install -r requirements.txt

Now to run the application, execute python -m auto_py_to_exe. A Chrome window in app mode will open with the project running inside.

Make sure you are in the directory below auto_py_to_exe (you will be after step 3) when calling python -m auto_py_to_exe or you will need to reference the folder auto_py_to_exe absolutely/relatively to where you currently are.

Using the Application

  1. Select your script location (paste in or use a file explorer)
    • Outline will become blue when file exists
  2. Select other options and add things like an icon or other files
  3. Click the big blue button at the bottom to convert
  4. Find your converted files in /output when completed

Easy.

Arguments

Usage: auto-py-to-exe [-nc] [-c [CONFIG]] [-o [PATH]] [filename]

ArgumentTypeDescription
filenamepositionalPre-fill the 'Script Location' field in the UI.
-nc, --no-chromeoptionalOpen the UI using the default browser (which may be Chrome). Will not try to find Chrome.
-nu, --no-uioptionalDon't try to open the UI in a browser and simply print out the address that the application can be accessed at.
-c [CONFIG], --config [CONFIG]optionalProvide a configuration file (json) to pre-fill the UI. These can be generated in the settings tab.
-o [PATH], --output-dir [PATH]optionalSet the default output directory. This can still be changed in the ui.

If you are running this package locally, you will need to call python -m auto_py_to_exe instead of auto-py-to-exe

Configurations

Instead of inserting the same data into the UI over and over again, you can export the current state of the UI by going to the section 'Configuration Import and Export' at the bottom of the advanced tab and exporting a JSON string to the clipboard or a file. This can then be imported into the UI again to re-populate all fields.

Video

If you need something visual to help you get started, I made a video for the original release of this project; some things may be different but the same concepts still apply.

Issues Using the Tool

If you're having issues with the packaged executable or using this tool in general, I recommend you read my blog post on common issues when using auto-py-to-exe. This post covers things you should know about packaging Python scripts and fixes for things that commonly go wrong.

Python 2.7 Support

As of PyInstaller v4.0 released on Aug 9 2020, Python 2.7 is no longer supported; although you can still use this tool with Python 2.7 by installing an older version of PyInstaller. PyInstaller v3.6 was the last version that supported Python 2.7; to install this, first uninstall any existing versions of PyInstaller and then execute python -m pip install pyinstaller3.6.

Testing

Tests are located in tests/ and are run using pytest:

Screenshots

Release historyRelease notifications RSS feed

2.9.0

2.8.0

2.7.11

2.7.10

2.7.9

2.7.8

2.7.6

2.7.5

2.7.4

2.7.3

2.7.2

2.7.1

2.7.0

2.6.6

2.6.5

2.6.4

2.6.3

2.6.2

2.6.1

2.6.0

2.5.3

2.5.2

2.5.1

2.5.0

2.4.2

2.4.1

2.4

2.3

Py2exe Missing Modules

2.2

2.1.1

2.0.0

1.3.0

1.2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for auto-py-to-exe, version 2.9.0
Filename, sizeFile typePython versionUpload dateHashes
Filename, size auto_py_to_exe-2.9.0-py2.py3-none-any.whl (81.8 kB) File type Wheel Python version py2.py3 Upload dateHashes
Filename, size auto-py-to-exe-2.9.0.tar.gz (76.4 kB) File type Source Python version None Upload dateHashes
Close

Hashes for auto_py_to_exe-2.9.0-py2.py3-none-any.whl

Hashes for auto_py_to_exe-2.9.0-py2.py3-none-any.whl
AlgorithmHash digest
SHA25621bd6768f99bebd278a5563a5d0633299824aa0ecd14d28930a07fea23c49eeb
MD5ffb14d24c2d7c336f748b53aa6d33642
BLAKE2-256f05360bfbe6622ced1ff2ca5327d2bc15aeab7f6581d84832e08f56aeac09043
Close

Hashes for auto-py-to-exe-2.9.0.tar.gz

Hashes for auto-py-to-exe-2.9.0.tar.gz
AlgorithmHash digest
SHA2568efeddc76587777b037a813adcf20bdaefcc86c5b05a4f2b3152b899f83a4031
MD57641b1e8e858f2b4471630a6df5b9607
BLAKE2-2562c2cb21e9b1f7fc669a1c6e4d5f8861caafdf41408f004eb617df5d67bfc8b32