1、安装说明
在linux安装pyinstaller
2、执行打包命令
$python_path/bin/pyinstaller -F test.py
3、调用dist目录下文件
./test
常见问题
Python library not found: libpython3.9m.so.1.0, libpython3.9m.so, libpython3.9.so.1.0, libpython3.9.so, libpython3.9mu.so.1.0
重新编译安装python即可
./configure –prefix=/usr/local/python3.9 –enable-shared –with-ssl make make install
本文指导如何在Linux中安装并使用PyInstaller打包Python脚本,遇到Python库找不到的问题时,建议重新编译Python3.9,指定安装路径并启用共享库。
4277

被折叠的 条评论
为什么被折叠?



