zoukankan      html  css  js  c++  java
  • 【Python】解决使用pyinstaller打包Tkinker程序报错问题

    问题描述

    使用pyinstaller打包使用Tkinter编写的控制台程序,出现报错

    15793 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
      required by d:solftwarepython3.7.3python.exe
    16000 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:solftwarepython3.7.3python.exe
    16193 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:solftwarepython3.7.3python.exe
    16394 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:solftwarepython3.7.3python.exe
    16582 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of d:solftwarepython3.7.3python.exe
    16767 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:solftwarepython3.7.3python.exe
    17012 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:solftwarepython3.7.3python37.dll
    17219 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:solftwarepython3.7.3python37.dll
    17392 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of d:solftwarepython3.7.3python37.dll
    17596 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of d:solftwarepython3.7.3python37.dll
    17769 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:solftwarepython3.7.3python37.dll
    17944 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of d:solftwarepython3.7.3python37.dll
    18136 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:solftwarepython3.7.3python37.dll
    18347 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:solftwarepython3.7.3python37.dll

    解决方案:

    执行pyinstaller 的时候添加  -p C:WindowsSystem32downlevel即可

    如下

    pyinstaller -F -w  -p C:WindowsSystem32downlevel face_label.py

  • 相关阅读:
    display:block;inline;inline-block大总结
    img图片inline-block总结
    定时器
    获取样式
    UmiJS
    vue 点击当前路由重新加载该路由
    Support for the experimental syntax 'decorators-legacy' isn't currently enab -- 装饰器@
    js 改变匹配到的字符串的颜色
    with
    页面从输入 URL 到页面加载显示完成
  • 原文地址:https://www.cnblogs.com/zhenglisai/p/11418144.html
Copyright © 2011-2022 走看看