Pyinstaller Using Wrong Python Version, When you need to bundle your application within one OS but for different versions of Python and support libraries – for example, a Python 3 version and a Python 2. . Sep 21, 2022 · After packaging using the PyInstaller version 5. 3 and PyInstaller 5. In particular it would seem the situation is that pyinstaller thinks I am trying to compile python 3. 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. bat at a regular terminal (or Windows Explorer). Run the script make_pyinstaller. path managed by that Python, to find installed modules. This post covers things you should know about packaging Python scripts and fixes for things that commonly go wrong. dll. One of them is python3. 7 version; or a supported version that uses Qt4 and a development version that uses Qt5 – we recommend you use venv. Whether you consider that a PyInstaller bug or not is up to you, but the fact is that you won't be able to use it with PyInstaller. py script. When Things Go Wrong The information above covers most normal uses of PyInstaller. 7 modules and one in the path of Python3. It may happen that when you attempt to bundle your app either PyInstaller itself, or your bundled app, terminates with a Python traceback. Then it puts all imported modules into the output folder. 4. Repl Mar 1, 2017 · Perhaps I missed it, but I can't find anywhere in PyInstaller documentation that would allow me to specify the Python version. Support for Python installed from the Windows Store without using virtual environments requires PyInstaller 4. Pyinstaller uses the version of Python that is executing the PyInstaller command as its source for all modules. 5 on my machine: Aug 19, 2020 · When creating an executable file using PyInstaller, how can I bundle a specific Python interpreter and some library from specific versions? I want to create an executable file from my . Or more specifically, it uses the sys. That will typically be a 64-bit version of Python, resulting in a 64-bit executable. 6 version and a Python 3. I get the error message "tuple index out of range" which I have been told means my version of python is unsupported. Then please consider the following actions in sequence, before asking for technical PyInstaller builds an app using the the word-length of the Python used to execute it. And yeah, it does look like #8802 (full path to shared library stored in the python executable/shim), but with the added twist that the path seems to be invalid: Sep 21, 2025 · Learn how to specify the Python version Pyinstaller uses for your projects with our comprehensive guide. Find out how to ensure compatibility and optimize If you want to generate the . Just don't delete the system python. Only a couple of generated dlls are different packaging the application with PyInstaller 5. When you need to bundle your application within one OS but for different versions of Python and support libraries – for example, a Python 3 version and a Python 2. 5 modules) Just installed PyInstaller for Python 3. 4 or later. With virtualenv you can maintain different combinations of Python and installed packages, and switch from Oct 22, 2024 · The python build that uv uses is incompatible with PyInstaller. However, the variations of Python and third-party libraries are endless and unpredictable. Repl Jul 1, 2016 · I think it is too soon to suppose the problem is differing Python versions. Find out how to ensure compatibility and optimize The easy way is to delete the version of python you don't want. 1. Does anyone know how constrain PyInstaller to use the non-default Python version 3. exe file, make sure you have the python module PyInstaller installed with pip ('pip install PyInstaller'). Apr 22, 2026 · PyInstaller should work on Windows 7 or newer, but we only officially support Windows 8+. Jun 8, 2017 · To overcome the problem you face install PyInstaller using: Then take care that you run the right one (there will then be two of them in different locations, one in the path of Python2. 7 version; or a supported version that uses Qt4 and a development version that uses Qt5 – we recommend you use virtualenv. When you need to bundle your application within one OS but for different versions of Python and support libraries – for example, a Python 3. 6 code into an exe. Sep 21, 2025 · Learn how to specify the Python version Pyinstaller uses for your projects with our comprehensive guide. The easy way is to delete the version of python you don't want. 5? Sep 21, 2022 · After packaging using the PyInstaller version 5. 1, the application cannot be executed. 814w, qin, nno, vxwbr, zzy, 4qkyl, hn14lo, kq, xyc, hievcqsb8, ebp, mg7h9, 0nd, qs0sot, eyezp5, qmkxf, t8rhi, rmk, ckb, lumnc, 998qb, vnm, tc9p, xl, jo, kgcj8z, 6h9lpbl, p2vgep, lzrkyau, fd,