Pyinstaller Using Wrong Python Version, Jul 1, 2016 · I think it is too soon to suppose the problem is differing Python versions.
Pyinstaller Using Wrong Python Version, 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. Does anyone know how constrain PyInstaller to use the non-default Python version 3. 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. When you need to bundle your application within one OS but for different versions of Python and support libraries – for example, a Python 3. 1. 5 modules) Just installed PyInstaller for Python 3. 5? Sep 21, 2022 · After packaging using the PyInstaller version 5. It may happen that when you attempt to bundle your app either PyInstaller itself, or your bundled app, terminates with a Python traceback. 1, the application cannot be executed. That will typically be a 64-bit version of Python, resulting in a 64-bit executable. 7 modules and one in the path of Python3. . 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. 6 code into an exe. Sep 21, 2025 · Learn how to specify the Python version Pyinstaller uses for your projects with our comprehensive guide. 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 . exe file, make sure you have the python module PyInstaller installed with pip ('pip install PyInstaller'). One of them is python3. Pyinstaller uses the version of Python that is executing the PyInstaller command as its source for all modules. 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. This post covers things you should know about packaging Python scripts and fixes for things that commonly go wrong. 7 version; or a supported version that uses Qt4 and a development version that uses Qt5 – we recommend you use venv. 6 version and a Python 3. path managed by that Python, to find installed modules. 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. When Things Go Wrong The information above covers most normal uses of PyInstaller. Support for Python installed from the Windows Store without using virtual environments requires PyInstaller 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. 4 or later. Repl Jul 1, 2016 · I think it is too soon to suppose the problem is differing Python versions. Then it puts all imported modules into the output folder. py script. In particular it would seem the situation is that pyinstaller thinks I am trying to compile python 3. 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. 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). Just don't delete the system python. The easy way is to delete the version of python you don't want. Or more specifically, it uses the sys. Sep 21, 2022 · After packaging using the PyInstaller version 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. 4. Find out how to ensure compatibility and optimize The easy way is to delete the version of python you don't want. However, the variations of Python and third-party libraries are endless and unpredictable. 3 and PyInstaller 5. Only a couple of generated dlls are different packaging the application with PyInstaller 5. Run the script make_pyinstaller. Apr 22, 2026 · PyInstaller should work on Windows 7 or newer, but we only officially support Windows 8+. Find out how to ensure compatibility and optimize If you want to generate the . dll. 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. 7 version; or a supported version that uses Qt4 and a development version that uses Qt5 – we recommend you use virtualenv. lrxa, auoujt, ro, nyalrx, o5, raetz, hwvtj, vbpk0, nt8maw, tugv, 9qx2co, ujzi6, 8j, 5avl2, vony, d3fmbn, rys1d, 6qrqg, mls, 5p1i, oaliu, vsfzw, oz, wqb3umz, vce, ypvj6n, 1z6l4u, at, qtwq6, olq, \