【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 ...
随机推荐
- Fiddler实现篡改接口请求和返回数据
步骤如下: 点击rules->Automatic Breakpoints,在这个选项下,我们可以看到三个可选项: Before Requests:在请求发出前拦截请求: After Reques ...
- node 进程管理 child_process [spawn,exec] | 珠峰培训node正式课 网络爬虫
run.js ; function set(){ i++ setTimeout(function(){ console.log(i) ){ set(); } },) }set(); child_pro ...
- Game-Based Learning Is Changing How We Teach. Here's Why.
https://www.edsurge.com/news/2019-02-04-game-based-learning-is-changing-how-we-teach-here-s-why This ...
- Common Substrings POJ - 3415 (后缀自动机)
Common Substrings \[ Time Limit: 5000 ms\quad Memory Limit: 65536 kB \] 题意 给出两个字符串,要求两个字符串公共子串长度不小于 ...
- clr调试扩展和DAC
SOS.DLL.SOSEX.DLL这两个就是用来对.NET程序在Windows调试工具中起到翻译作用的调试器扩展.简单讲就是,这两个组件是.NET项目组专门开发出来用来对.NET应用程序进行方便调试用 ...
- BZOJ 1801: [Ahoi2009]中国象棋
题目描述 //每行每列最多放两个,可以讨论第i-1行到第i行的每一种情况 #include<complex> #include<cstdio> using namespace ...
- Spark 部署即提交模式意义解析
Spark 的官方从 Cluster Mode Overview 中,官方向我们介绍了 cluster 模式的部署方式. Spark 作为独立进程在集群上运行,他们通过 SparkContext 进行 ...
- 无法导入cv2模块(Python 3.6)
C:\Users\leahj>C:\Users\leahj\AppData\Local\Programs\Python\Python36\Scripts\pip3 install cv2 Col ...
- java8 instant localDateTime
- 【小盘子看源码-MyBatis-1】MyBatis配置文件的加载流程
众所周知,Mybatis有一个全局的配置,在程序启动时会加载XML配置文件,将配置信息映射到org.apache.ibatis.session.Configuration类中,例如如下配置文件. &l ...