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

Getting started with Python

Tencent's 2022 school recruitment of large factories started with salary, and the general contracting of cabbage is close to 40W!

GoF23—原型模式

On site commissioning - final method of kb4474419 for win7 x64 installation and vs2017 flash back

Library management system

The purpose of writing programs is to solve problems

Efk upgrade to Clickhouse log storage practice

Household accounting procedures (the second edition includes a cycle)

如何设计好的技术方案

Hot! 11 popular open source Devops tools in 2021!
随机推荐
Cython入门
去哪儿网BI平台建设演进史
如何设计好的技术方案
MVC source code sharing
Class and object learning
Several promotion routines of data governance
Efk Upgrade to clickhouse log Storage Reality
numpy. frombuffer()
Day4 branch and loop
Mysql-10 (key)
Zotero使用之自定义参考文献格式
解决在win10下cmder无法使用find命令
【Spark】Spark SQL 字段血缘如何实现
Tencent WXG internship experience (has offered), I hope it will help you!
Evolution history of qunar Bi platform construction
Playing RTSP streaming video on Web pages (webrtc)
numpy.tile()
06. talk about the difference and coding between -is and = = again
架构设计方法
Prometheus和Zabbix的对比