gpt4 book ai didi

python - 从 Pycharm Python 项目创建可执行文件

转载 作者:太空宇宙 更新时间:2023-11-03 13:58:33 25 4
gpt4 key购买 nike

enter image description here如何获取 Python 项目目录中的所有脚本和文件并创建单个可执行文件。我尝试过使用这个:How do I create an executable file out of a PyCharm project using PyInstaller?但它不起作用。我已经在 PyCharm 中开发了该项目,并且使用的是 Python 3.4。

enter image description here

最佳答案

您可以使用cx_Freeze与 py2exe 和 py2app 的方式相同。它支持 python 2.7 或更高版本,或者您可以使用 Pyinstaller将所有内容绑定(bind)在可执行文件中。您可以使用以下命令下载它:

pip install pyinstaller 

或者您可以从网站下载

关于python - 从 Pycharm Python 项目创建可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49425007/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com