PyOxidizer
PyOxidizer copied to clipboard
Can PyOxidizer compile any python file into an independent executable?
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()
`
It can create an executable from a python file. My project uses it exactly for that https://github.com/telekom/netplanner