pyinstaller安装与使用

来源:互联网 发布:mysql中syntax error 编辑:程序博客网 时间:2024/05/22 09:48

1.安装pyinstaller

如果电脑安装的python版本低于3.6的情况下,直接使用pip安装pyinstaller

pip installer pyinstaller

如果电脑python版本高于3.6则安装之后去网站下载pyinstaller,然后将site-packages里面的文件Pyinstaller替换掉

如果不替换则运行pyinstaller时会报错


2.安装pywin32

去网站https://sourceforge.net/projects/pywin32/files/pywin32/ 下载对应版本的pywin32,分64位和32位,分python版本


3.使用pyinstaller

pyinstaller -F -w demo.py

直接打包成exe文件

原创粉丝点击