专栏总目录
一、使用PyInstaller
pyInstaller可以将Python脚本打包成一个独立的可执行文件,不包含源代码。
(一)安装PyInstaller:
pip install pyinstaller
(二)使用PyInstaller打包脚本:
pyinstaller --onefile your_script.py
将在./dist
目录下创建一个名为your_script
的可执行文件(在Windows上是.exe
,在Linux上是无扩展名的)。
二、使用pycryptodome
(一)安装pycryptodome
pip install pycryptodome