Pyinstaller打包过程中报错“AttributeError: module 'enum' has no attribute 'IntFlag'”问题解决
python是一门很强大的跨平台应用,昨天看到一个新闻就是python现在已经跃居第一编程语言的宝座,有很多python的脚本可以通过打包成exe的windows下的可执行文件来去执行,我们今天就是简单的实践了一个打包的过程,主要的打包工具有:py2exe和pyinstaller,我们主要使用的是pyinstaller。
在使用的使用出现下面的错误:
其中,红色框中的是报错问题的关键所在,尝试了很多种解决方式都不行,也没理解enum到底是干吗用的,后来同事告知一个方法把该模型卸载掉试试,卸载之后就没有这样的报错信息了,问题也得以成功解决,执行下述命令即可卸载:
python3 -m pip uninstall enum34
我用的是python3所以命令使用python3来完成卸载,记录一下。
Pyinstaller打包过程中报错“AttributeError: module 'enum' has no attribute 'IntFlag'”问题解决相关推荐
- pyinstall :打包 .exe 文件报错AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘
有疑问的地方 参考博文 一.环境搭建 Python GUI图形化小工具编程学习-- PySide2 环境搭建(一) 二.实例演示 Python GUI图形化小工具编程学习-- Demo 实例演示(二) ...
- 错误:AttributeError: module 'enum' has no attribute 'IntFlag'
错误:AttributeError: module 'enum' has no attribute 'IntFlag' 文章目录: 一.错误原因 二.解决错误方法:[参考](https://stack ...
- 成功解决AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘?
成功解决AttributeError: module 'enum' has no attribute 'IntFlag'? 目录 解决问题 解决思路 解决方法 解决问题 AttributeError: ...
- AttributeError : module ‘enum‘ has no attribute ‘IntFlag‘
导入包的时候出现问题AttributeError : module 'enum' has no attribute 'IntFlag'? 直接去掉这个包: pip uninstall -y enum3 ...
- python 报错 AttributeError: module ‘time‘ has no attribute ‘clock 解决方法
源码如下: #引入所需要的时间库 import datetime import time#程序计时器,启动计时器 start = time.clock()#中间是放置需要测试运行时间的程序代码#计算启 ...
- 第一:Python+Allure运行报错AttributeError: module ‘allure‘ has no attribute ‘severity_level‘
1.很多查询结果都是先卸载pytest-allure-adaptor,然后再安装allure-pytest pip3 uninstall pytest-allure-adaptor 2.pip3 in ...
- python中引入包的时候报错AttributeError: module ‘sys‘ has no attribute ‘setdefaultencoding‘解决方法?
python中引入包的时候报错AttributeError: module 'sys' has no attribute 'setdefaultencoding'解决方法? 参考文章: (1)pyth ...
- 学习python-mysql:报错AttributeError: module 'MySQLdb' has no attribute 'cursors'
爬虫写入数据库时报错: AttributeError: module 'MySQLdb' has no attribute 'cursors' 解决方法: 引入 import MySQLdb.curs ...
- Python中出现:AttributeError: module 'numpy' has no attribute 'dtype'问题解决
QUESTION:Python中出现:AttributeError: module 'numpy' has no attribute 'dtype'问题解决 ANWSER: 这个问题可是困扰了我一天的 ...
- 安装时间同步ntp服务,过程中报错no module named urlgrabber.grabber
安装时间同步脚本需要安装ntp服务,但是安装过程中报错如下截图 yum -y install ntp ntpdate 原因是系统初始化脚本,编译python ,bin程序是放在这个目录下的.平台这边把 ...
最新文章
- ITK:区域最大图像过滤器
- 基于POI的读写Excel文件的工具类
- java框架概念_java概念(2)
- Syslink Control使用技巧
- 两台服务器数据库怎么自动同步数据库,mysql 多台数据库同步server-id 重复导致的问题...
- 20180320作业2:进行代码复审训练
- python3 循环写入一对多键值对_Python 3.9 正式版要来了,会有哪些新特性?
- 数据结构笔记(三)-- 链式实现顺序表
- AWS--Lamdba
- vue watch 经常监听不到_VUE处理 组件赋值 watch 监听不到赋值问题
- 后摩尔时代下先进封装技术
- Updating HP ESXi Hosts with VUM
- python将png转换为ico
- 解决加载libqxcb.so失败以及Linux库搜索顺序
- phpmywind 查询结果生成csv文件并下载到本地
- Linux刻录系统文件ISO到光盘
- 十二个“一”的演义小故事
- 河北计算机软件职业技术学院,河北软件职业技术学院2021年排名
- PDPS软件:机器人抓手工具运动机构制作与仿真运行测试
- hdu 3265 Posters