1.解压源码包,前提安装了setuptools
unzip pyinstaller-python3.zip
2.安装
cd pyinstaller-python3
python setup.py build
python setup.py install
安装完之后在/usr/local/bin 生成pyinstaller可执行文件
3.编译.py文件生成可执行文件
pyinstaller test.py
在目录下生成 build和dist文件夹 可执行文件在dist目录下

网友评论