Skip to content
Advertisement

Tag: executable

.py executable file not able to find imported functions included in the script when executed, why?

I have a .py script which import some functions from an another .py script, located in an another directory in the same folder. And some of those scripts import functions from some other .py scripts contained in the folder itself. I have created an executable file of my main.py file (which eventually uses functions from all other files) using pyinstaller.

Including External Python Packages with Python Executable

I have made my own Executable from a python script which I want to run on a computer that does not have Python installed on it. My only problem is there are packages I have included which are not default python packages (e.g. pynput). Otherwise, the Executable would run fine without Python installed. Is there a way to include Python

Make a python file an executable

Is there a way to make an executable from a python file, but not load the python interpreter? Both py2exe and pyinstaller do this. Is there another library that doesn’t? Answer Try Nuitka. It converts python code into C, and then compiles that into an executable. It is also faster than the regular CPython. Nuitka is already slightly faster than

Advertisement