当前位置:网站首页>3.pyinstaller模块介绍
3.pyinstaller模块介绍
2022-06-26 06:08:00 【星烨无痕】
PyInstaller模块可以将写好的.py文件或者项目封装成执行文件,执行文件可以被分发到对应的Windows或MacOSX平台上运行。下面介绍pyinstaller模块,模块最好是安装在虚拟环境中。
安装PyInstalle
Python默认并不包含PyInstaller模块,因此需要自行安装PyInstaller模块。在cmd命令行输入如下命令:
pip install pyinstaller
强烈建议使用pip在线安装的方式来安装PyInstaller模块,不要使用离线包的方式来安装,因PyInstaller模块还依赖其他模块,pip在安装PyInstaller模块时会先安装它的依赖模块
运行上面命令,应该看到如下输出结果:
Successfully installed pyinstaller-x.x.x
其中的x.x.x代表PyInstaller的版本。
在PyInstaller模块安装成功之后,在Python的安装目录下的Scripts(D:\Python\Python37\Scripts)目录下会增加一个pyinstaller.exe程序,接下来就可以使用该工具将Python程序生成EXE程序了。
PyInstaller生成可执行程序
PyInstaller工具的命
边栏推荐
- Handwritten background management framework template (I)
- Static proxy mode
- Design and practice of low code real-time data warehouse construction system
- tf.nn.top_k()
- Efk upgrade to Clickhouse log storage practice
- canal部署、原理和使用介绍
- Tortoise and rabbit race example
- Selective Search for Object Recognition 论文笔记【图片目标分割】
- numpy. frombuffer()
- DPDK——TCP/UDP协议栈服务端实现(二)
猜你喜欢

MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications

Import / export function implementation

Install pyinstaller

Library management system

Logstash——使用throttle过滤器向钉钉发送预警消息

EFK升级到ClickHouse的日志存储实战

MVC source code sharing

Younger sister Juan takes you to learn JDBC -- two days' Sprint Day2

跨域的五种解决方案

Design and practice of low code real-time data warehouse construction system
随机推荐
Yamaha robot splits visual strings
Understanding of nil in go language
解决在win10下cmder无法使用find命令
Record how to modify the control across threads
花生壳内网穿透映射NPM私服问题
Explore small program audio and video calls and interactive live broadcast from New Oriental live broadcast
Detailed explanation of serial port communication principle 232, 422, 485
实时数仓方案如何选型和构建
Redis underlying data structure
Machine learning 07: Interpretation of PCA and its sklearn source code
低代码实时数仓构建系统的设计与实践
MySQL-07
Thinking skills of technical leaders
Logstash -- send an alert message to the nail using the throttle filter
302. minimum rectangular BFS with all black pixels
Tencent WXG internship experience (has offered), I hope it will help you!
Five solutions across domains
Thinking and summary of technical ability
Deeply uncover Ali (ant financial) technical interview process with preliminary preparation and learning direction
Several promotion routines of data governance