当前位置:网站首页>Pyinstaller+installforge multi file project software packaging
Pyinstaller+installforge multi file project software packaging
2022-07-23 17:08:00 【HiJack ¹】
One 、 Project file directory
Project
------main.py
------mainPage.py
------aiJudge.py
------audioCollection.py
------predict.py
------aiJudge
------audioCollection
------checkpoints
------SCALER_LIBROSA.m
------checkpoint_model.h5
------checkpoint_model.json
------configs
------lstm.yaml
------extract_feats
------mylibrosa.py
------features
------predict.p
------train.p
------models
------LSTM.py
------statics
------files.jpg
------utils
------plot.py
------opts.p
Two 、Pyinstaller pack
Multiple python File packaging commands are as follows , among main.py For program entry
pyinstaller -D -i C:\Users\Desktop\icon.ico -w main.py -p aiJudge.py -p audioCollection.py -p mainPage.py -p predict.py --hidden-import aiJudge.py --hidden-import audioCollection.py --hidden-import mainPage.py --hidden-import predict.py
Parameter description
| Parameters | explain |
|---|---|
| -D | Pack multiple files , stay dist Many dependent files are generated in |
| -w | The command line will not open when the program starts ( Only right Windows It works ) |
| -i | Change the icon of the program |
| -p | Set the import path , Indicate the resources required by the program |
After packing , Generate dist、build、main.spec file (dist Contains a file named main Project files for ), Copy the unpackaged dependencies into the generated directory dist Next project file main Then you can .
Error:No such file or directory: '\\librosa\\util\\example_data\\registry.txt'
solve : Direct will librosa Copy the corresponding file under to dist
3、 ... and 、InstallForge Build installation package
1、General
1.1 General
2、Setup
2.1 Files
add to dist/main/ All the files , Files can be added with one click , Folders can only be added manually one by one

2.2 Uninstallation
3、Dialogs
3.1 Finish
Input dist/main Just execute the executable file
4、System
4.1 Shortcuts
add to shortcuts

5、Build
Enter the storage path and name of the installation package 
6、 Click on Build, Build installation package 
边栏推荐
- pip报错Could not find a version that satisfies the...No matching distribution
- [untitled]
- Object.defineproperty method, data agent
- Function secondary development / plug-in development of JMeter (detailed version)
- 软件质量体系之思
- Tips and tricks for Neural Networks 深度学习训练神经网络的技巧总结(不定期更新)
- Win11如何添加图片3D效果?Win11添加图片3D效果的方法
- Solution for iPhone unable to open openv** file
- 考过PMP对实际工作帮助大吗?
- [MySQL]一、MySQL起步
猜你喜欢

软件测试计划包括哪些内容,测试计划如何编写。分享测试计划模板

深度学习学习记录-优化器的学习率的更新

详解一次SQL优化

解决data functions should return an object 并(Property “visible“ must be accessed with “$data.visible“)

智慧物联网源码 带组态物联网源码 工业物联网源码:支持传感器解析服务,数据实时采集和远程控制

系统内存介绍和内存管理

Solve data functions should return an object (property "visible" must be accessed with "$data.visible")

ROS2自学笔记:RQT可视化工具

已解决(selenium 操作火狐Firefox浏览器报错)AttributeError: ‘WebDriver’ object has no attribute ‘execute_cdp_cmd’

AutoCAD进阶操作
随机推荐
【Flutter -- 布局】弹性布局(Flex 和 Expanded)
Fundamentals of C language -- 2-6 pointers, arrays and sizeof operators
Direct exchange
通过SSH方式访问内网RDS+mysql
使用BoundsChecker「建议收藏」
Object.defineproperty method, data agent
系统内存介绍和内存管理
PMP practice once a day | don't get lost in the exam -7.23
[31. Maze walking (BFS)]
Shell | 查看进程的方法的不完全总结
灰色关联分析(MATLAB)
Could not load dynamic library ‘cudnn64_8.dll‘; dlerror: cudnn64_8.dll not found
C语言基础篇 —— 2-5 指针与函数知识点
AutoCAD进阶操作
死磕递归1:递推公式
怎么正确设置路由器
图的先深搜索、图的先广搜索 (三种方法实现)
主成分分析(MATLAB)
无心剑英汉双语诗006.《致爱妻》
oracle 数据库 11C 之后版本使用 memory_target 自动内存管理