pyinstaller generates an .exe executable file by packaging and reports an error "IndexError: tuple index out of range"

tags: Python  pyqt  gui  Pyinstaller  .exe

I want to package the GUI program written by pyqt into an .exe file so that it can run under Windows. I don’t want to have compatibility issues due to the use of Python 3.6:

IndexError: tuple index out of range


The current version of Pyinstaller's official website is 3.2.1 and only supports Python2.7, Python3.3~Python3.5

Need to beIn the official website source codehttps://github.com/pyinstaller/pyinstallerDownload, unzip the PyInstaller folder in the compressed package and replace the C:\Python36\Lib\site-packages\PyInstaller folder.

This will support Python 3.6, but it is a development version and may not be complete.


Successfully packaged:

Intelligent Recommendation

Python project packaging generates .exe executable file

Project packaging Step 1: You need to install third-party modules first. Online installation method: pip install PyIntaller Step 2: Execute the packaging file Input: -F Path to generate python file \F...

PyInstaller generates executable exe program

Install Pylnstaller Generate exe executable file...

python .format IndexError: tuple index out of range

Write this way, no problem But the reference in the format is an error.  ...

Python generates executable file exe-pyinstaller command line implementation

You need to install pyinstaller for the first time Ctrl+r Enter cmd to open the command line. Enter the following to install the pyinstaller library The following figure shows that after the installat...

Pyinstaller packaged into exe executable file

Pyinstaller module A, Pyinstaller Profile Two, Pyinstaller installation Third, the parameters introduced Fourth, the problems encountered in packaging When the windows package used in the code process...

More Recommendation

Package an exe executable file with PyInstaller

PyinstallerWhat is it? PyinstallerPackage the Python application f as a standalone executable file under Windows, GNU/Linux, Mac OS X, FreeBSD, Solaris and AIX. Two lines of commands to get started qu...

Python code directly generates executable exe file-------pyinstaller library (solving the incompatibility between python3.8 and pyinstaller 3.5)

There is a very powerful library in python that can directly package the written python code into an executable .exe file. The generated file does not require the python operating environment and IDE ...

IndexError when writing reptiles: tuple index out of range problem solving

IndexError when writing reptiles: tuple index out of range problem solving problem Content specific code Functional Description: Structural design program: code problem I'm just getting started is a w...

KERAS training appears IndexError: Tuple Index Out of Range

I report this error because: When the model is compiled, the output of the "Triplet" layer is1dAnd the calculation of Metrics requires at least two dimensions in the source code.Solution is,...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top