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

↘锁芯ラ 提交于 2021-01-27 12:59:44

问题


I'm trying to package my GTK3+ Python 3 script using PyInstaller on Windows 10.

GTK3+ and the Python bindings are installed and working, using MSYS2 MinGW as per the GTK+ instructions.

In MSYS2 MinGW, when I type:

pip3 install pyinstaller

I get the error: Your platform is not yet supported. Please define constant PYDYLIB_NAMES for your platform.

So I attempted to install PyInstaller manually from Windows PowerShell by downloading and extracting the tar.gz file for PyInstaller and then running:

python3 setup.py install

But with that, I get "ModuleNotFoundError: No module named 'setuptools'".

How can I install PyInstaller in MinGW, for use on a GTK3+ Python3 script?


回答1:


You can download setuptools from PyPI and install manually with python setup.py install. Then repeat what you have done.




回答2:


With PyInstaller 3.6, you should no longer be getting the Your platform is not supported errors when trying to pip install it in MSYS2.



来源:https://stackoverflow.com/questions/54728231/how-to-fix-pyinstaller-in-msys2-mingw-your-platform-is-not-yet-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!