cygwin 上的 PyInstaller

问题描述

我需要从 cygwin 上的 .py 文件创建一个 .exe 文件。由于 py2exe 似乎在那里不起作用,我尝试了 PyInstaller。但是我在安装它时遇到了问题。 pip install pyinstaller 返回此消息:

ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py

所以我试着按照这个指南:https://pyinstaller.readthedocs.io/en/latest/bootloader-building.html 并手动安装它。但是当我运行 pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz 时,我为 PyInstaller 获得的文件夹不是 https://github.com/pyinstaller/pyinstaller 而是这个:https://github.com/pyinstaller/pyinstaller/tree/develop/PyInstaller,其中没有 waf 文件,我无法运行 python ./waf all . 所以我手动从github下载了所需的文件夹,然后python ./waf all成功了。但是,我仍然无法使用 PyInstaller,因为在尝试从命令行调用它时出现此错误

ModuleNotFoundError: No module named 'PyInstaller.__main__'

我不知道如何修复它。我应该怎么做才能让 PyInstaller 工作,或者我可能需要使用其他一些与 cygwin 一起工作的模块?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)