python生成exe文件

python生成exe文件

安装pyinstaller库

pip install pyinstaller

这是安装库的命令行这是在powershell窗口下
到达需要转换py文件的目录下

Set-Location “文件路径”
pyinstaller.exe -F xx.py

然后我们就可以在相关目录下看到我们exe文件了

原文地址:https://www.cnblogs.com/Xiong-Jun/p/13515053.html