PyOxidizer icon indicating copy to clipboard operation
PyOxidizer copied to clipboard

Can PyOxidizer compile any python file into an independent executable?

Open yelban opened this issue 2 years ago • 1 comments

Tried for a whole day, read the official documents, and consulted GPT-4, but couldn't find a way to package a specific python script file into an independent executable, Just like what Nuitka does. Can PyOxidizer compile any python file into an independent executable?

` import cv2

def main(): image_path = '.\photo.jpg'

image = cv2.imread(image_path)

if image is None:
    print("not found")
    return

cv2.imshow('Original Image', image)

cv2.waitKey(0)
cv2.destroyAllWindows()

if name == 'main': main()

`

yelban avatar Nov 22 '23 02:11 yelban

It can create an executable from a python file. My project uses it exactly for that https://github.com/telekom/netplanner

Cellebyte avatar Jan 11 '24 18:01 Cellebyte