Hi Bwoodsend,
Thanks for your reply,
- Don't use onefile mode. This way it'll be scanned the first time you
run but never again (unless you compile again).
- the script will quit in Onedir mode w/o any output as exe from
onefile mode after the run is complete
- Use regular NumPy from PyPI. This is only 30MB so takes just a few
seconds.
- I have sized down the exe from 500MB to 28MB, but the same issue
remains. The script will freeze from every second run onwrads
- Turn off your antivirus.
- unable to do so, also don't think it's the anrivirus scan since the
freezing duration is the same comparign to 500MB to 28MB.
Is there any other possible reasons for it?
Thanks
On Thursday, March 18, 2021 at 8:46:29 PM UTC+8 bwoodsend wrote:
> Initialization delays are caused by your antivirus scanning each binary as
> it's loaded in. Conda's distribution of NumPy contains 500MB of binaries
> so can take ages to scan. Your options are:
>
> - Don't use onefile mode. This way it'll be scanned the first time you
> run but never again (unless you compile again).
> - Use regular NumPy from PyPI. This is only 30MB so takes just a few
> seconds.
> - Turn off your antivirus.
>
> Personally I'd recommend you do all three.
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/264f38f7-5287-4193-be67-6269f38c612dn%40googlegroups.com.