Hello, everyone pyinstaller has a problem with compiling and running, so I'm asking you a question
def main():
while True:
start_time = time.time()
pool = Pool(2)
pool.map(GetPage, range(1,b+1))
pool.close()
pool.join()
print("--- %s seconds ---"%(time.time() - start_time)))
if __name__ == '__main__':
main()
I had to import page information repeatedly like this, so I had to repeat it with while When running in Visual Studio Code The pool disappears as you want, and works well. When you compile and run it, pool appears as infinite and the computer stops What is the problem?
python
if_name_=='_main_':
Freeze_support() <<< You have to write this down!
main()
567 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
567 Who developed the "avformat-59.dll" that comes with FFmpeg?
577 PHP ssh2_scp_send fails to send files as intended
884 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
606 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.