- 当前使用Python 版本 3.11.2
- 项目地址:https://github.com/Boris-code/jmpy
安装 jmpy 包:
1 | pip install jmpy3 |
执行:
1 | jmpy -i xxx.py -o /tmp/ |
如果报错:
1 | collection.c:208:27: fatal error: longintrepr.h: No such file or directory |
解决方案:pip install Cython==0.29.32
提示:Python 会对 .py
文件生成 .pyc
文件,所以加密要在运行前进行,或者加密完成后再删除 __pycache__/xxx.pyc
文件