【问题标题】:How to convert python script to exe Without additional files如何在没有附加文件的情​​况下将python脚本转换为exe
【发布时间】:2016-11-20 04:50:39
【问题描述】:

我想将我的 python 脚本转换为 exe,而不需要额外的文件,如 ddl、pyd.. 有可能吗?

【问题讨论】:

标签: python file exe


【解决方案1】:

使用 pyinstaller https://github.com/pyinstaller/pyinstaller 通过在终端/控制台中运行pip install pyinstaller 来安装它 然后运行pyinstaller --onefile yourscriptsname.py,它会在同一目录下为你创建一个exe文件

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-11-21
    • 2015-03-26
    • 1970-01-01
    • 2019-04-17
    • 2020-11-23
    • 2011-09-25
    • 2021-06-12
    • 1970-01-01
    相关资源
    最近更新 更多