I have built a bundled Python application that is a composition of an installed (i.e. "*.exe", via pyinstaller) and a code (i.e. "*.py") part. This is due to a package that does not support installation, thus I have to call it directly from source.
I am able to distribute and run the application by including in the bundle my environment in .\venv and running the code via .\venv\Scripts\python.exe my_script.py, however it requires Python installed onto the machine, raising an Error otherwise
No Python at 'C:\Python38\python.exe'
Is there a way to include Python38 folder in my package to allow anyone to start the application regardless of Python installed or not (and its version)? I've tried to:
- copy
Python38folder within package and within.\venv\Scripts\hoping that.\venv\Scripts\python.exewas searching there before looking inC:\-> not working - include
Python38in my package and force its copy inC:\as the very first instruction -> it works, but it seems like cheating, and it may mess up things on recipient's computer