只需要安装以下几个模块

pip install pyinstaller
pip install pycryptodomex
pip install tinyaes

网上很多教程都是让先安装 pycrypto 模块,在安装这个模块时就会提示需要安装 VC++ , 需要 3G~5G 的空间,太浪费硬盘空间了。

在 python3 中可以使用 pycryptodomex 来进行替代,也无需其它设置,安装好即可使用加密编译