MYCSS

11 вересня 2023 р.

Нотатка: concurrent.futures.ProcessPoolExecutor pyinstaller та python. freeze_support()

Знайшов проблему використання concurrent.futures.ProcessPoolExecutor з pyinstaller.

Програма випадала у такі помилки.

concurrent.futures.ProcessPoolExecutor з pyinstaller

За рішенням: https://stackoverflow.com/questions/28631288/concurrent-futures-works-well-in-command-line-not-when-compiled-with-pyinstal

Допомогло використання:

from multiprocessing import freeze_support


def main()
    freeze_support()
    ...
 

 

Немає коментарів:

Коли забув ти рідну мову, біднієш духом ти щодня...
When you forgot your native language you would become a poor at spirit every day ...

Д.Білоус / D.Bilous
Рабів до раю не пускають. Будь вільним!

ipv6 ready