r/pythonhelp • • Mar 20 '25

I need to convert from .py to .exe

I already tried auto py to exe and it doesn't work, can someone help me?

1 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/Goobyalus Mar 20 '25

I think OP is saying that they need to package a pickle file, which is an AI model, into the executable along with the code.

1

u/FoolsSeldom Mar 21 '25

I thought I asked that explicitly. So is that different to standard pickling in Python?

1

u/Goobyalus Mar 21 '25

No, it's just one common (and insecure) way to share models.

I was unclear - I don't think OP has an issue with serialization / deserialization, but an issue with including existing data files in an executable package.

1

u/FoolsSeldom Mar 21 '25

I am unclear on the scope as well. Don't think I can help anyway, as I never turn Python programmes into single executables.