Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 pyarmor 将多个 python 文件编译成单个 .exe 文件?我目前正在使用:pyarmor pack --clean -e "--onefile " file.py但它仅适用于一个文件:/
pyarmor pack --clean -e "--onefile " file.py
您可以使用该--recursive参数,它将递归地查看您在目录中的所有 py 文件并对其进行混淆。
--recursive
pyarmor pack --clean -e "--onefile " -x " --recursive" entry.py
entry.py必须是你的入口脚本,即你执行的文件。
entry.py