简体   繁体   English

如何修复:MSYS2 MinGW 中的 PyInstaller“您的平台尚不受支持”

[英]How to fix: PyInstaller in MSYS2 MinGW 'Your platform is not yet supported'

I'm trying to package my GTK3+ Python 3 script using PyInstaller on Windows 10.我正在尝试在 Windows 10 上使用 PyInstaller 打包我的 GTK3+ Python 3 脚本。

GTK3+ and the Python bindings are installed and working, using MSYS2 MinGW as per the GTK+ instructions .根据 GTK+说明使用 MSYS2 MinGW 安装并运行 GTK3+ 和 Python 绑定。

In MSYS2 MinGW, when I type:在 MSYS2 MinGW 中,当我输入:

pip3 install pyinstaller pip3 安装 pyinstaller

I get the error: Your platform is not yet supported.我收到错误消息:您的平台尚不受支持。 Please define constant PYDYLIB_NAMES for your platform.请为您的平台定义常量 PYDYLIB_NAMES。

So I attempted to install PyInstaller manually from Windows PowerShell by downloading and extracting the tar.gz file for PyInstaller and then running:因此,我尝试通过下载并解压缩 PyInstaller 的 tar.gz 文件,然后运行,从 Windows PowerShell 手动安装 PyInstaller:

python3 setup.py install python3 setup.py 安装

But with that, I get "ModuleNotFoundError: No module named 'setuptools'".但是这样,我得到“ModuleNotFoundError:没有名为‘setuptools’的模块”。

How can I install PyInstaller in MinGW, for use on a GTK3+ Python3 script?如何在 MinGW 中安装 PyInstaller,以便在 GTK3+ Python3 脚本上使用?

You can download setuptools from PyPI and install manually with python setup.py install .您可以从 PyPI 下载 setuptools 并使用python setup.py install手动python setup.py install Then repeat what you have done.然后重复你所做的。

使用 PyInstaller 3.6,在 MSYS2 中尝试 pip install 时,您不应再收到不支持您的平台错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM