Questions tagged [pyinstaller]

PyInstaller is a multi-platform tool designed to convert Python (.py) files into stand-alone executable files on Windows, Linux, macOS, Solaris, and AIX.

PyInstaller is a multi-platform tool designed to convert Python (.py) files into standalone executable files on Windows, macOS, Linux, FreeBSD, Solaris, and AIX. These executable files can run on a system without Python installed, but are OS-dependent, meaning that the executable has to be generated from a machine with the same operating system than the machine in which it will run (for instance, it is not possible to generate an executable from macOS and then run it on Windows).

It is designed to be compatible with many third-party modules such as PyQt, Django or matplotlib without requiring configuration or plugins.

PyInstaller is open source software, distributed under the GPL. It works out of the box with any Python version 2.7 / 3.5-3.7.

The latest version of Pyinstaller is available on GitHub http://www.pyinstaller.org/

Usage

Install PyInstaller from PyPI:

pip install pyinstaller

Go to your program’s directory and run:

pyinstaller yourprogram.py

This will generate the bundle in a subdirectory called dist.

6448 questions
2
votes
1 answer

pyinstaller program keeps running in background after closing

I have a pyinstaller executable wxpython GUI that works fine. The only issue I am having is that when I close the program with the X button on the window, it stays running in the background. Does anyone know of a way to kill the process when the…
mickNeill
  • 346
  • 5
  • 22
2
votes
0 answers

Pyforms, pysettings and pyinstaller, object has no attribute 'settings'

I have problem with pyforms and pysettings in python 2.7 after compilation to the executable file. Script runs normally and without errors when executed by "python godziny.py". However after I create executable file (currently I use pyinstaller, but…
Garreth
  • 21
  • 2
2
votes
1 answer

Digital signing halts with the error "SetDllDirectory function in Pyinstaller is not currently supported by Windows UWP applications"

When I try to create a Windows AppX with Advanced Installer at the digital signing stage the program stops saying "The application calls the SetDllDirectory function which is currently not supported by windows UWP applications. A digitally unsigned…
emorphus
  • 550
  • 9
  • 20
2
votes
2 answers

excluding files in Pyinstaller

In the spec file created by Pyinstaller when compiling i have added excludes=["mfc90u.dll", "mfc90.dll"], but after compiling these two files can be found in the compiled directory. BUT when I add the line excludes=["FixTk", "tcl", "tk",…
emorphus
  • 550
  • 9
  • 20
2
votes
1 answer

Pyinstaller executable very large

I'd like to create an executable with pyinstaller for my colleagues. My first attempt (on anaconda python 3.6) causes so much crap to get included the executable is over 200mb in size. For a 20 line script that only needs numpy because pandas…
Rafaël Dera
  • 399
  • 2
  • 9
2
votes
0 answers

Create an executable from Selenium Python for IE with Pyinstaller

I have created a set of python scripts that scrape information out of a website using Internet Explorer. This methodology while not ideal, is the only way I could get it to work as the site does not work well with other browsers and has single-sign…
2
votes
0 answers

Python code recovery from source code

I have an exe binary that was created using PyInstaller. I have reversed the exe file . I have some strange files that are called black_box and black_box.exe.manifest. When I use strings command on the black_box file this is what I see: What is…
Maxim Toyberman
  • 1,906
  • 1
  • 20
  • 35
2
votes
1 answer

pyinstaller not importing submodules

I cannot seem to get pyinstaller to correctly package a module. Example module structure myapp/ __main__.py mysubmodule.py Example __main__.py content """My __main__.py.""" import myapp.mysubmodule print("Done") If I run python -m…
Jacob Tomlinson
  • 3,341
  • 2
  • 31
  • 62
2
votes
0 answers

"Invalid configuration" error when using python-arabic-reshaper package with Pyinstaler

I am trying to use PyInstaller to put an exe wrapper around a Python 2.7 script that imports Python package python-arabic-reshaper, the script works fine when running by itself, but ends in the error below if run from within a Pyinstaller exe. The…
AddOneSec
  • 21
  • 1
2
votes
0 answers

windows32 pyinstaller matplotlib PySide init required argument

i'm trying to compile python application using pyinstaller. This application import Pyside and Matplotlib, on a windows32 Note that without pyinstaller the application works. I have reduce the application to point the problem. Here my class using…
Jérémy Caré
  • 315
  • 3
  • 12
2
votes
1 answer

Can't get Pyinstaller to execute python file

I have written a program in Python 3.6 and I tried to use Pyinstaller to execute it but then i found out Pyinstaller will only work up to Python 3.5 so I downloaded that and tried to execute that file it still wont work! I different errors from it…
2
votes
0 answers

Pyinstaller executable cannot find QtWebEngineProcess.exe

I'm trying to compile a python program using Pyinstaller that will run PyQt5 QtWebEngineWidgets. Unfortunately there seems to be an issue with the relative path to QtWebEngineProcess.exe within the pyinstaller build. I installed pyqt5 to be used…
huitlacoche
  • 173
  • 1
  • 2
  • 15
2
votes
1 answer

PyInstaller installed 'successfully' using pip but pyinstaller.py is nowhere to be found

I'm running Python 3.5.3 on Windows and I attempted to install Pyinstaller with pip. It seemed to work- no errors or anything, very simple as pip always is. I tried import -m pyinstaller but it said the module didn't exist, so I checked the…
SSc
  • 21
  • 2
2
votes
2 answers

PyInstaller exe file doesn't create log file

I'm trying to make my scripts executable so I can send it to my colleague. I'm using PyInstaller. pyinstaller --onefile main.py Which creates two folders. When I open dist/main.exe, something is wrong but I don't know what because it doesn't…
Milano
  • 18,048
  • 37
  • 153
  • 353
2
votes
3 answers

How to tell Pyinstaller to use Python 3.5 instead of 2.7?

I am trying to build an executable out of my .py script using Pyinstaller. The problem is that it builds it using Python 2.7 instead of Python 3.5, so my executable won't even run. cali@californiki-pc ~/Desktop $ pyinstaller --onefile Vocabulary.py…
user7864036
1 2 3
99
100