python 使用pyinstaller生成exe

因为电脑以前安装过pip

所以直接cmd 管理员权限运行:pip install pyinstaller

安装successfully之后就可以转换.py程序了.

cmd管理员权限打开,cd到你要转换的文件目录下。

比如,文件在D:\TEST下,CMD默认打开C:\。执行:

D;

cd TEST

pyinstaller yourprogram.py

教程:

https://pyinstaller.readthedocs.io/en/v3.3.1/usage.html

https://wizardforcel.gitbooks.io/py-sec-tutorial/content/zh-cn/0x4.html

猜你喜欢

转载自www.cnblogs.com/watermarks/p/9101479.html