Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Can';t在Windows 10上安装PyGTK_Python_Python 3.x_Cmd_Pip_Windows 10 - Fatal编程技术网

Python Can';t在Windows 10上安装PyGTK

Python Can';t在Windows 10上安装PyGTK,python,python-3.x,cmd,pip,windows-10,Python,Python 3.x,Cmd,Pip,Windows 10,我已经安装了Python以及PIP和PyObject V1.0, 但尝试安装PyGTK是一个错误。将在一分钟内添加其他相关问题。 下面列出了给定的输出错误。我使用的是来自Github的windows 10&Hyper CMD Microsoft Windows [Version 10.0.19041.508] (c) 2020 Microsoft Corporation. All rights reserved. C:\Users\Ryan>cd Desktop C:\Users\Ry

我已经安装了Python以及PIP和PyObject V1.0,
但尝试安装PyGTK是一个错误。将在一分钟内添加其他相关问题。
下面列出了给定的输出错误。我使用的是来自Github的windows 10&Hyper CMD

Microsoft Windows [Version 10.0.19041.508]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\Ryan>cd Desktop

C:\Users\Ryan\Desktop>cd Python

C:\Users\Ryan\Desktop\Python>pip install PyGTK
Collecting PyGTK
  Using cached pygtk-2.24.0.tar.bz2 (2.4 MB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ryan\\AppData\\Local\\Temp\\pip-install-dvq3hehj\\pygtk\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ryan\\AppData\\Local\\Temp\\pip-install-dvq3hehj\\pygtk\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
egg_info --egg-base 'C:\Users\Ryan\AppData\Local\Temp\pip-pip-egg-info-_fc9fnz2'
         cwd: C:\Users\Ryan\AppData\Local\Temp\pip-install-dvq3hehj\pygtk\
    Complete output (1 lines):
    ERROR: Could not import dsextras module: Make sure you have installed pygobject.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

C:\Users\Ryan\Desktop\Python>pip install pyobject
Collecting pyobject
  Downloading pyobject-1.0.tar.gz (12 kB)
Using legacy 'setup.py install' for pyobject, since package 'wheel' is not installed.
Installing collected packages: pyobject
    Running setup.py install for pyobject ... done
Successfully installed pyobject-1.0

C:\Users\Ryan\Desktop\Python>pip install pygtk
Collecting pygtk
  Using cached pygtk-2.24.0.tar.bz2 (2.4 MB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ryan\\AppData\\Local\\Temp\\pip-install-qotfp_ry\\pygtk\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ryan\\AppData\\Local\\Temp\\pip-install-qotfp_ry\\pygtk\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
egg_info --egg-base 'C:\Users\Ryan\AppData\Local\Temp\pip-pip-egg-info-p2eqklxp'
         cwd: C:\Users\Ryan\AppData\Local\Temp\pip-install-qotfp_ry\pygtk\
    Complete output (1 lines):
    ERROR: Could not import dsextras module: Make sure you have installed pygobject.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

C:\Users\Ryan\Desktop\Python>
可能相关问题::>>


如果PyGTK是一个python包,那么为什么它依赖于MSYS2这样的程序来安装,如果确实需要安装,为什么终端没有提到这是一个错误或必要的依赖性

ReadTheDocs网站上给出的示例图片看起来像是20世纪70年代在windows系统上安装的,因此不确定这篇文章的最新版本。表示Windows 7及以上版本。。我正在运行Windows 10 Home,最新更新

Ps PyGTK有哪些好的替代品?
是否有更适合GUI的方法
不确定列表中的哪些人使用过这些工具

被认为是重复的问题已经存在3年多了,MSYS2看起来仍然不是最新的或正在积极维护。另外,我使用的是不同版本的python


正在寻找一种在windows上构建GUI的简单方法,用于基本任务和学习。

这是否回答了您的问题@alex rudenko部分是这样做的,所以我要么使用python的旧版本&MSYS2的过时版本,要么找到一个不同的图形库/模块。。您知道任何更新的替代方案吗?这是否回答了您的问题@alex rudenko部分是这样做的,所以我要么使用python的旧版本&MSYS2的过时版本,要么找到一个不同的图形库/模块。。你知道任何更新的替代方案吗?