PyInstaller =============================== 安装 ------------- .. code-block:: bash $ pip install pyinstaller $ conda install pyinstaller 生成配置文件 -------------------- .. code-block:: bash $ pyi-makespec --onefile quickstart.py .. note:: ``--onefile`` 参数主要是说明生成的可执行文件是一个单个可执行文件。 该命令会生成一个quickstart.spec的文件,该文件描述了如何打包 打包 --------------------- .. code-block:: bash $ pyinstaller quickstart.spec