Python cygwin上的PyInstaller
我需要从cygwin上的.py文件创建一个.exe文件。因为py2exe在那里似乎不工作,所以我尝试了PyInstaller。然而,我有一个问题,安装它Python cygwin上的PyInstaller,python,cygwin,pyinstaller,Python,Cygwin,Pyinstaller,我需要从cygwin上的.py文件创建一个.exe文件。因为py2exe在那里似乎不工作,所以我尝试了PyInstaller。然而,我有一个问题,安装它pip install pyinstaller返回此消息: ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py 所以我试着遵循这个指南:并手动安装它。但是当我运行pip安装时https://github.com/pyinstalle
pip install pyinstaller
返回此消息:
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
所以我试着遵循这个指南:并手动安装它。但是当我运行pip安装时https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
我为PyInstaller获得的文件夹不是,而是这个:其中没有waf文件,我无法运行python./waf all
。
因此,我手动从github下载了所需的文件夹,然后python./waf all
成功。但是,我仍然无法使用PyInstaller,因为在尝试从命令行调用PyInstaller时出现以下错误:
ModuleNotFoundError: No module named 'PyInstaller.__main__'
我也不知道如何修复它。我该怎么做才能让PyInstaller正常工作,或者我需要使用其他与cygwin一起工作的模块?你能使用www.python.org上的python而不是cygwin的python吗?@Philippe我真的不明白你的意思。我使用的是SageMath Shell,它已经预装了cygwin python和我需要的模块。我不确定是否可以用stadard python替换它。我不知道
SageMath Shell
。我想如果它与cygwin python一起工作,那么它应该与标准python一起工作。我使用标准python成功地测试了pyinstaller,并且在cygwin python中也遇到了问题。