+ 3
Packaging python files to .exe
I have imported pymysql, while converting .py files to exe through pyintaller, how can i make pymysql work in a machine/PC that doesn't have MySql installed?
6 ответов
+ 3
I think It's an exception.
To use exception handling in Python, you first need to have a catch-all except clause. The words "try" and "except" are Python keywords and are used to catch exceptions.
+ 2
you can do as Pedro H.J said.
depend on your program consumer installing mysql can be a bother, most of the end-user only want oneclick to install and run. thats why many application have those things their program may need bundled with the installer, and i'm not sure if oracle allow mysql to be bundled with your program.
best way to do this is either use them from hosting services across the web. or use serverless database like sqlite
+ 1
Thanks alot friend