本文介绍了努力用pip安装pygtk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows上使用pip安装pygtk.最初我得到一个错误说错误:无法导入dsextras模块:请确保已安装pygobject."

I am trying to install pygtk using pip on Windows. Initially i get an error saying"ERROR: Could not import dsextras module: Make sure you have installed pygobject."

因此,当我尝试安装pygobject时,出现错误消息错误:找不到pkg-config:请检查您的PATH环境变量"

So when I try installing pygobject I get an error saying"ERROR: Could not find pkg-config: please check your PATH environment variable"

对于Python来说还很新,所以可能会犯一个愚蠢的错误,但是有人有什么想法吗?

Pretty new to Python so could be making a stupid mistake but does anyone have any ideas?

谢谢

推荐答案

我在Window 7计算机上遇到了同样的问题,并通过安装预构建的PyGTK可执行文件解决了该问题,我在这里找到: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.22/.

I had the same problem on my Window 7 machine, and solved it by installing the prebuilt PyGTK executables, which I found here: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.22/.

我为我的Python版本(2.7)安装了"pygtk-all-in-one -....".

I installed the "pygtk-all-in-one-...." for my version of Python (2.7).

这篇关于努力用pip安装pygtk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 07:50