Just to add on, after trying all the methods, the script freeze before 
import time.
T_T

On Friday, March 19, 2021 at 6:56:25 PM UTC+8 Siwen L wrote:

> 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 pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/bafdb9d0-3e47-4d24-a31c-17bb1fdb6cccn%40googlegroups.com.

Reply via email to