python 使用pyinstaller生成exe

Posted One is never too old to learn.

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于python 使用pyinstaller生成exe的主要内容,如果未能解决你的问题,请参考以下文章