当前位置:网站首页>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 
边栏推荐
猜你喜欢

Convolutional neural network model -- googlenet network structure and code implementation

CNCF基金会总经理Priyanka Sharma:一文读懂CNCF运作机制

微机原理与技术接口笔记

微机原理与技术接口课后作业总结

【30. n-皇后问题】

Tips and tricks for neural networks deep learning and training skills summary (updated from time to time)

AutoCAD基本操作

Is PMP a great help for practical work?

Summary of after class homework of Microcomputer Principle and technical interface

UPC 2022暑期个人训练赛第12场(B 组合数)
随机推荐
Microcomputer principle and technical interface practice in class
移动、电信、联通:5G To B的花式解法
死磕递归1:递推公式
排序-介绍,代码思路,使用建议,代码实现-1
图的先深搜索、图的先广搜索 (三种方法实现)
sprintf和cv::putText
Detector: detect objects with recursive feature pyramid and switchable atolos convolution
How to set up the router correctly
VScode——代码、文件改动无法保存
目前有哪些年利率6%左右的保本理财产品?
Fundamentals of C language -- the data type meaning of 2-4 pointers and the analysis of forced type conversion
银河证券网上开户,手机上开户安不安全
一道反序列化的CTF题分享
Leetcode-67. binary sum
Docker install redis
oracle 数据库 11C 之后版本使用 memory_target 自动内存管理
The first stage of basic knowledge of numpy data analysis (numpy Foundation)
Sprintf and cv:: puttext
Pinduoduo app product details interface to obtain activity_ ID value (pinduoduo activity_id interface)
Browser homology policy