如何将包含3个Python脚本和1个UI的文件夹转换为可执行文件?

问题描述 投票:0回答:1

所以现在,我有3个脚本,1个是我使用的类,1个是函数列表,1个是UI。

UI是“主要”脚本,它还使用QtDesigner制作的.ui文件。但我不知道如何使用PyCharm或其他任何东西将其转换为可执行文件?我搜索了pyinstaller和py2exe,但无法弄清楚如何使用它们。

python python-3.x pycharm exe
1个回答
1
投票

PyInstaller

您可以使用import导入其他文件夹中的其他文件:

Import directory-name/python-filename-without-extension

Example:-

#!/usr/bin/python3 import additional-files/filename

© www.soinside.com 2019 - 2024. All rights reserved.