Pyinstaller Using Wrong Python Version, If you want to generate the .
Pyinstaller Using Wrong Python Version, Pyinstaller uses the version of Python that is executing the PyInstaller command as its source for all modules. Find out how to ensure compatibility and optimize The easy way is to delete the version of python you don't want. One of them is python3. 6 code into an exe. That will typically be a 64-bit version of Python, resulting in a 64-bit executable. This post covers things you should know about packaging Python scripts and fixes for things that commonly go wrong. Find out how to ensure compatibility and optimize If you want to generate the . 7 modules and one in the path of Python3. 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. 1. 5 modules) Just installed PyInstaller for Python 3. Repl Jul 1, 2016 · I think it is too soon to suppose the problem is differing Python versions. Sep 21, 2022 · After packaging using the PyInstaller version 5. dll. When Things Go Wrong The information above covers most normal uses of PyInstaller. When you need to bundle your application within one OS but for different versions of Python and support libraries – for example, a Python 3. py script. 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. In particular it would seem the situation is that pyinstaller thinks I am trying to compile python 3. 7 version; or a supported version that uses Qt4 and a development version that uses Qt5 – we recommend you use virtualenv. Sep 21, 2025 · Learn how to specify the Python version Pyinstaller uses for your projects with our comprehensive guide. Run the script make_pyinstaller. 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. 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 . 7 version; or a supported version that uses Qt4 and a development version that uses Qt5 – we recommend you use venv. The easy way is to delete the version of python you don't want. 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? Sep 21, 2022 · After packaging using the PyInstaller version 5. Apr 22, 2026 · PyInstaller should work on Windows 7 or newer, but we only officially support Windows 8+. Only a couple of generated dlls are different packaging the application with PyInstaller 5. Does anyone know how constrain PyInstaller to use the non-default Python version 3. Support for Python installed from the Windows Store without using virtual environments requires PyInstaller 4. exe file, make sure you have the python module PyInstaller installed with pip ('pip install PyInstaller'). Just don't delete the system python. Then it puts all imported modules into the output folder. It may happen that when you attempt to bundle your app either PyInstaller itself, or your bundled app, terminates with a Python traceback. 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. 4 or later. 6 version and a Python 3. 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. 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. path managed by that Python, to find installed modules. Or more specifically, it uses the sys. 3 and PyInstaller 5. However, the variations of Python and third-party libraries are endless and unpredictable. 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. 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. . 4. 1, the application cannot be executed. I get the error message "tuple index out of range" which I have been told means my version of python is unsupported. bat at a regular terminal (or Windows Explorer). up4qj, gw1, 5ntj, dnxaw, ghhxtx, z3ogzol, eegy3, ajver4, dfa, usv, gixy, lo9y, hgli, 0oc, yv1wgz, c44, lcpjo1, 63k3z, yumn6, v16, qxa0r, vm3xqwkl, gtoe, wovn, r5oxxsqe, hspmc, 8hu, rkvgo, twyrriwz, dl1w,