gpt4 book ai didi

python-3.x - 如何修复 : PyInstaller in MSYS2 MinGW 'Your platform is not yet supported'

转载 作者:行者123 更新时间:2023-12-04 01:09:52 24 4
gpt4 key购买 nike

我正在尝试在 Windows 10 上使用 PyInstaller 打包我的 GTK3+ Python 3 脚本。

GTK3+ 和 Python 绑定(bind)已安装并正常工作,根据 GTK+ instructions 使用 MSYS2 MinGW .

在 MSYS2 MinGW 中,当我键入:

pip3 install pyinstaller

我收到错误消息:您的平台尚不受支持。请为您的平台定义常量 PYDYLIB_NAMES。

因此,我尝试通过下载并解压缩 PyInstaller 的 tar.gz 文件然后运行,从 Windows PowerShell 手动安装 PyInstaller:

python3 setup.py install

但是,我得到“ModuleNotFoundError:没有名为‘setuptools’的模块”。

如何在 MinGW 中安装 PyInstaller,以便在 GTK3+ Python3 脚本上使用?

最佳答案

您可以从 PyPI 下载 setuptools 并使用 python setup.py install 手动安装。然后重复你所做的。

关于python-3.x - 如何修复 : PyInstaller in MSYS2 MinGW 'Your platform is not yet supported' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54728231/

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