当前位置:网站首页>Pyinstaller打包 && 关于Enum34的问题解决 && 降低版本
Pyinstaller打包 && 关于Enum34的问题解决 && 降低版本
2022-07-21 20:29:00 【Flying Bulldog】
用pyinstaller打包时出错
AttributeError:module ‘enum’ has no attribute ‘IntFlag’
解决方法:降低版本
网上大多数都建议:just remove enum34,此方法可能对打包小项目有作用,但是对于打包大项目而言,显得过于草率,卸载后会导致一些文件在打包的时候漏掉。
figure 1. 报错画面
figure 2. 使用 pip freeze 查看enum34==1.1.10
注:使用 pip freeze 会输出所有在本地已安装的包,pip freeze 输出的内容和 pip list 输出的内容差不多,若需要输出内容与 pip list 一致,需使用 pip freeze -all。
figure 3. 命令 pip install enum34== 查看可下载的版本
figure 4. 命令 pip install enum34==1.1.8 下载1.1.8版本
如 figure 5 所示,打包到文件中的torch大小和环境中的torch的大小基本相等,运行程序成功!
figure 5. 打包完毕,查看文件中的 torch 的大小
figure 6. enum34==1.1.8 官网界面
链接直达:enum34 · PyPI
>>>如有疑问,欢迎评论区一起探讨
边栏推荐
- 启动jar包shell脚本
- Student management system (file version)
- 向量化引擎对HTAP的价值与技术思考
- Example interview - Zeng yuluo: gain experience from lectures
- 调用“抱抱脸团队打造的Transformers pipeline API” && 通过预训练模型,快速训练和微调自己的模型
- ACM mode when brushing questions
- Introduction to nodes
- 智能运维场景解析:如何通过异常检测发现业务系统状态异常
- TCP 通信流程详解(附有案例代码)
- About BOM update of SAP apo rpmcall specified production order
猜你喜欢
Matlab natural spline function (constraining the slope at both ends)
systemd 管理 process-exporter
Responsive dream weaving template smart home website
TCP 通信流程详解(附有案例代码)
SYSTEMd management process exporter
我擦\那些测试员面试中的“潜规则”,千万不要踩坑
向量化引擎对HTAP的价值与技术思考
What is causal deep learning? Deepmind's latest icml2022 "causality and deep learning: synergy, challenges and the future" tutorial
About BOM update of SAP apo rpmcall specified production order
[shutter -- basic component] radio switch & Radio & checkbox
随机推荐
《Service Worker 指南-1》
[解决]vscode代码没有输入完成就自动换行bug
GL_ TRIANGLE_ Fan and GL_ TRIANGLE_ STRIP
自定义类型:结构体(二)位段实现
模型微调(fine-tuning)
X书app数美-sid分析
unity2D 箭头动画
标签平滑(LabelSmoothing)介绍与代码实现
【红队】ATT&CK - Active Scanning(主动扫描)
js 模拟form表单post提交
systemd 管理 blackbox-exporter
响应式织梦模板智能家居类网站
Restful URL design specification
Rights management series-1: introduction to rights management - control of modules
ICML 2022开奖!复旦、上交、厦大多篇工作入选杰出论文
基于oracle数据库存储过程的创建及调用
启动jar包shell脚本
Example interview - Zeng yuluo: gain experience from lectures
什么是因果深度学习?DeepMind最新ICML2022《因果性与深度学习:协同、挑战和未来》教程
《Multiple UAV exploration of an unknown region》翻译