Struggling to install pygtk with pip

我的未来我决定 提交于 2019-11-28 05:36:08

问题


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."

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

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

Thanks


回答1:


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/.

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



来源:https://stackoverflow.com/questions/26323732/struggling-to-install-pygtk-with-pip

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