Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can PyOxidizer compile any python file into an independent executable? #726

Open
yelban opened this issue Nov 22, 2023 · 1 comment
Open

Comments

@yelban
Copy link

yelban commented Nov 22, 2023

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()

`

@Cellebyte
Copy link

Cellebyte commented Jan 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants