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()
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'
if name == 'main': main()
`