I'm new in python and pyinstaller.
Now, I am packing a ptqt5 application with PaddlePaddle.
PaddlePaddle is some kind of Deep Learning framework like tensorflow and Pytorch.
After package, the application start very slow.
I print the datetime at each line and find that "import paddlepaddle" takes more the 30 seconds.
"import paddlepaddle" is not the first line, there is os, sys and other package at first and they can import really fast.
But when I run the python script, it does not take this time.
I think I did not using one-file. The program was package into a directory. The directory is about 500M and the exe file is 12M.
I am using venv and onedir mode.
How can I deal with this problem?
Thanks for any suggestions or guide directions.