当前位置:网站首页>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工具的命
边栏推荐
- MySQL-09
- Class and object learning
- E-commerce seeks growth breakthrough with the help of small program technology
- numpy.frombuffer()
- 302. minimum rectangular BFS with all black pixels
- 302. 包含全部黑色像素的最小矩形 BFS
- numpy.log
- Tencent's 2022 school recruitment of large factories started with salary, and the general contracting of cabbage is close to 40W!
- Import / export function implementation
- Vs2022 offline installation package download and activation
猜你喜欢
随机推荐
Multi thread synchronous downloading of network pictures
Thinking skills of technical leaders
Explore small program audio and video calls and interactive live broadcast from New Oriental live broadcast
Prometheus和Zabbix的对比
Typora activation method
[intra group questions semester summary] some reference questions for beginners
NPM private server problem of peanut shell intranet penetration mapping
Import export simple
The purpose of writing programs is to solve problems
Introduction to canal deployment, principle and use
numpy.log
GoF23—工厂模式
技术能力的思考和总结
消息队列-全方位对比
Library management system
Redis multithreading and ACL
Day2- syntax basis and variables
numpy. exp()
GoF23—抽象工厂模式
Transaction and message semantics









