使用pyinstaller对python打包
来源:互联网 发布:windows系统字体大小 编辑:程序博客网 时间:2024/06/05 06:45
使用pyinstaller对python打包时使用matplotlib和Tkinter库所遇到的问题
pyinstaller的安装的简单使用就不多说了,pyinstaller-github中有详细介绍,比较简单。
主要记录在对打包时遇到的几个问题。
1. 程序中使用matplotlib,在打包完成后出现Intel MKL FATAL ERROR: Cannot load mk2_avx.dll or mk2_def.dll错误。如下所示:(PS,直接点击.exe文件可能不会出现错误信息,直接闪退,把.exe文件拖到dos窗口里运动就ok)
缺少这两个动态库,直接把这两个动态库复制到.exe的目录下就好,其中,这两个库的位置在python目录的./Scripts/目录下。
2. 使用Tkinter建立窗口,使用matplotlib绘图时出现:This probably means that Tcl wasn’t installed properly, 如下图所示:
这是由于matplotlib和Tkinter模块在引用时顺序不对,应该先定义matplotlib,然后在定义Tkinter。
如下:
#先定义matplotlib,然后在定义Tkinter 下面这种将发生错误#import Tkinter#import matplotlib.pyplot as pltimport matplotlib.pyplot as pltimport Tkinter
阅读全文
0 0
- 使用pyinstaller对python打包
- 使用Pyinstaller打包Python脚本
- Ubuntu使用pyinstaller打包python
- 使用pyinstaller打包Python应用程序
- 使用PyInstaller打包Python程序
- linux下使用pyinstaller打包python脚本
- 使用pyinstaller打包python为exe文件
- 使用pyinstaller打包python为exe文件
- 使用 pyinstaller 打包 Python 程序为可执行文件
- 使用pyinstaller打包python为exe文件
- pyinstaller的使用python 打包程序
- Python 使用pyinstaller打包exe程序
- Python程序打包--pyinstaller库的使用
- Python使用pyinstaller进行打包报错
- pyinstaller打包python
- !!!pyinstaller 打包 python
- PyInstaller打包python程序
- pyinstaller打包python步骤
- HTML4.0和HTML5 属性之间的差异
- Node.js + Express.js 环境配置
- 云通信—连接产品与用户的桥梁
- bootstrap在一个模态框上弹出另一个模态框遮罩层问题
- 9、spring-boot缓存支持
- 使用pyinstaller对python打包
- Android仿淘宝购物车,玩转电商购物车
- Ubuntu 16.04配置vncviewer
- Java内存模型与线程03:内存间交互操作
- zxing.net 中文乱码,重新设置字符集完美解决
- c++ 安装usb驱动
- 常见HTTP错误代码大全
- xlistview多条目加载
- Java高并发,如何解决,什么方式解决