微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

cygwin 上的 PyInstaller

如何解决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 举报,一经查实,本站将立刻删除。