命令“python setup.py egg_info”在PyGtk中失败,错误代码为1

问题描述 投票:-1回答:1

嗨,我正在尝试安装PYGTK包,并最终出现以下错误,任何人都可以请帮助。

root@cs-6000-devshell-vm-fccb9b9d-7bf3-4500-b14c-82320cb414d7:/usr/local/bin# pip install PyGtk
Collecting PyGtk
  Using cached pygtk-2.24.0.tar.bz2
    Complete output from command python setup.py egg_info:
    ********************************************************************
    * Building PyGTK using distutils is only supported on windows. *
    * To build PyGTK in a supported way, read the INSTALL file.    *
    ********************************************************************

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-pybnrq/PyGtk/
python linux kubernetes pygtk
1个回答
0
投票
  • 仅在Windows上支持使用distutils构建PyGTK。
  • 要以受支持的方式构建PyGTK,请阅读INSTALL文件。

PyGTK经常不喜欢使用pip或setup.py安装,所以请在PyGTK下载中读取INSTALL文件。这应该告诉您如何正确安装它。

如果谷歌有疑问,许多论坛会逐步安装PyGTK。

© www.soinside.com 2019 - 2024. All rights reserved.