failed to execute script pyi_rth_multiprocessing


  1. 先看问题
    pyinstaller打包的.exe文件无法正常运行,具体报错:

failed to execute script pyi_rth_multiprocessing

  1. 运行环境
    系统:win7
    python版本:python3.8

  2. 错误原因
    操作系统版本低或者缺少补丁

  3. 解决方法
    方法一
    升级windows 7 到 sp1版本
    方法二
    如果还是不能运行,下载版本补丁KB2533623到c:\update,如果没有update目录则新建
    按照下面执行命令

expand –F:* C:\update\Windows6.1-KB2533623-x64.msu C:\update
dism.exe /online /Add-Package /PackagePath:C:\update\Windows6.1-KB2533623-x64.cab

重启系统后再测试