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

How to select and build a real-time data warehouse scheme

Record how to modify the control across threads

MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications

MySQL-08

Mysql-10 (key)

Message queuing - omnidirectional comparison

100 cases of go language

低代码实时数仓构建系统的设计与实践

技术能力的思考和总结

On site commissioning - final method of kb4474419 for win7 x64 installation and vs2017 flash back
随机推荐
GoF23—原型模式
如何设计好的技术方案
EFK升级到ClickHouse的日志存储实战
Install pyinstaller
100 cases of go language
去哪儿网BI平台建设演进史
Understanding of nil in go language
Upgrading technology to art
DS18B20详解
Logstash——使用throttle过滤器向钉钉发送预警消息
Import export simple
C generic speed
在web页面播放rtsp流视频(webrtc)
【群内问题学期汇总】初学者的部分参考问题
numpy.random.choice
Redis多线程与ACL
Message queuing - omnidirectional comparison
Import / export function implementation
Yamaha robot splits visual strings
01 golang and matlab code of knapsack problem