【Python】解决使用pyinstaller打包Tkinker程序报错问题
问题描述
使用pyinstaller打包使用Tkinter编写的控制台程序,出现报错
15793 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by d:\solftware\python3.7.3\python.exe
16000 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:\solftware\python3.7.3\python.exe
16193 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\solftware\python3.7.3\python.exe
16394 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\solftware\python3.7.3\python.exe
16582 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of d:\solftware\python3.7.3\python.exe
16767 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\solftware\python3.7.3\python.exe
17012 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:\solftware\python3.7.3\python37.dll
17219 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\solftware\python3.7.3\python37.dll
17392 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of d:\solftware\python3.7.3\python37.dll
17596 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of d:\solftware\python3.7.3\python37.dll
17769 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\solftware\python3.7.3\python37.dll
17944 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of d:\solftware\python3.7.3\python37.dll
18136 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\solftware\python3.7.3\python37.dll
18347 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\solftware\python3.7.3\python37.dll
解决方案:
执行pyinstaller 的时候添加 -p C:\Windows\System32\downlevel即可
如下
pyinstaller -F -w -p C:\Windows\System32\downlevel face_label.py
【Python】解决使用pyinstaller打包Tkinker程序报错问题的更多相关文章
- [python学习笔记] pyinstaller打包pyqt5程序无法运行
问题 pyinstaller打包的pyqt5程序在部分电脑上会失败.用户截图提示下边错误日志 无法定位程序输入点 ucrtbase.terminate 于动态链接库 api-ms-win-crt-ru ...
- 【解决】MacOS下 Python3.7 使用 pyinstaller 打包后执行报错 Failed to execute script pyi_rth__tkinter
Fix tcl/tk libs inclusion in tkinter with Python3.7 under MacOS 使用 Pyinstaller 打包时候报错 3027 ERROR: Tc ...
- moviepy应用pyinstaller打包后执行报错AttributeError: module audio/video.fx.all has no attribute fadein、crop
专栏:Python基础教程目录 专栏:使用PyQt开发图形界面Python应用 专栏:PyQt入门学习 老猿Python博文目录 在开发moviepy的Python程序使用pyinstaller打包后 ...
- [python]解决Windows下安装第三方插件报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0xcb in position 0:
系统:win7IDE:pycharm Python版本:2.7 安装第三方插件是报错: 报错原因与编码有关,pip把下载的临时文件存放在了用户临时文件中,这个目录一般是C:\Users\用户名\Ap ...
- pyinstaller打包.py程序为.exe操作指南
pyinstaller打包.py程序为.exe操作指南 20190526内容纲要: 1.pyinstaller安装 2.程序封装 3.可执行程序 0 前言 今天第一次试试将一个py程序封装成一个.ex ...
- appium 与 selenium python解决python 'WebElement' object does not support indexing 报错问题问题
再用selenium编写测试脚本时,发现出现python 'WebElement' object does not support indexing 报错问题问题,再找一些解决方法时,发现Appium ...
- 小程序-报错 xxx is not defined (已解决)
小程序-报错 xxx is not defined (已解决) 问题情境: 这样一段代码,微信的小程序报错 is not defined 我 wxml 想这样调用 //wxml 代码 <view ...
- 使用pyinstaller打包.py程序
使用pyinstaller打包.py程序 例如打包D:/Desktop 目录下的 filename.py 文件 打开 cmd 将目录切换至 D:/Desktop 输入命令 pyinstaller -F ...
- Python 程序报错崩溃后,如何倒回到崩溃的位置?
假设我们有一段程序,从 Redis 中读取数据,解析以后提取出里面的 name 字段: import json import redis client = redis.Redis() def read ...
随机推荐
- Mac 上 brew 安装Tomcat
首先保证brew命令能够正常使用: 搜索tomcat是否存在:brew search tomcat 安装tomcat:brew install tomcat 检查是否安装成功:catalina -h ...
- 解决node.js链接数据库时出现的报错 --- client does not support authentication
打开mysql数据库小黑屏 然后输入 mysql> alter user 'root'@'localhost' identified with mysql_native_password by ...
- 学习:窗口创建以及消息处理basic.c
WNDCLASS结构: Windows 的窗口总是基于窗口类来创建的,窗口类同时确定了处理窗口消息的窗口过程(回调函数). 在创建应用程序窗口之前,必须调用 RegisterClass 函数来注册窗口 ...
- 监听localStorage中的数据变化
问题描述:我们在js里面获取了某一个localstorage的值,但是后期它可能改变了,我们js只执行一遍没办法再次获取它的值,当然可以刷新页面获取,但如果是我们的但页面就不能刷新页面了,此时:我们可 ...
- JS的ES6的async
1.async概念: 真在意义上解决异步回调函数的问题(由于promise的then方法中还是使用回调函数,而async中await并没有使用回调函数真正意义上解决回调函数),同步流程表达异步操作. ...
- 年轻人的第一个自定义 Spring Boot Starter!
陆陆续续,零零散散,栈长已经写了几十篇 Spring Boot 系列文章了,其中有介绍到 Spring Boot Starters 启动器,使用的.介绍的都是第三方的 Starters ,那如何开发一 ...
- bootstrap弹框去除遮罩层效果
是通过css解决这个问题,核心css代码如下: .modal-backdrop { filter: alpha(opacity=)!important; opacity: !important; } ...
- 如何将 普通代码变成 java lamband表达式
public static void main(String[] args) { Map<String, String> map = new HashMap<>(); List ...
- 修改 ulimit 时 需要注意的问题
- MySQL 性能调优
MySQL 性能调优 索引 索引是什么 官方介绍索引是帮助MySQL高效获取数据的数据结构.笔者理解索引相当于一本书的目录,通过目录就知道要的资料在哪里,不用一页一页查阅找出需要的资料. 索引目的 ...