安装Python GTK [英] Installing Python GTK

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

问题描述

我最近为我的工程类提出了一个arduino项目。我通过串行通信来蟒蛇与arduino交谈。现在我可以向板子发送数据,我想要能够使用GTK设置图形用户界面GUI,以便用户在GUI中按下一个按钮并打开一个LED。但是,我正在尝试安装GTK自由,我遇到了很多问题。



问题:
我通过pyip下载GTK,当我在命令行中运行设置文件时,它说
你必须安装pyobject。所以我回到pyip并下载pyobject模块并运行设置文件。当我运行设置文件时,我收到此错误消息 错误:找不到pkg-config:请检查您的PATH环境变量。 我从pyip下载了pyconfig跑了,设置好了。但是当我去安装pyobject时,我不断得到这个错误。有人可以直接告诉我如何正确安装GTK或如何解决我的问题。
PS我尝试将我的Windows环境设置为我的pkg-config文件的位置。



安装程序出错





CMD错误:



帮助将深深赞赏



感谢



Sean From Boxing Studio Games

解决方案

我会建议您使用最新的一体化安装程序为pyGTK。你可以找到它 here



它应该自动安装pyGTK的所有依赖项。


I have recently stated a arduino project for my engineering class. I mange to get python to talk to arduino via serial communication. Now I can send data to the board, I want to be able to set up a graphical user interface GUI with GTK, so that the user and push a button in the GUI and a LED turns on. However, I am trying to install the GTK liberty and I am running into a lot of problems.

Problem: I download GTK via pyip, when I run the set up file in the command line it says you have to install pyobject. So i went back to pyip and download the pyobject module and run the set up file. When I run the set up file I get this error message "ERROR: Could not find pkg-config: Please check your PATH environment variable." I downloaded the pyconfig from pyip ran it and the set up ran fine. But when i went to install pyobject I keep getting this error. Can someone direct tell me how to install GTK properly or how to fix my problem. PS I try setting my windows environment to the location of my pkg-config file.

Error from Installer

CMD error :

Help would be deeply appreciated

Thanks

Sean From Boxing Studio Games

解决方案

I would suggest that you use the latest all-in-one installer for pyGTK. You can find it here.

It should automagically install all of the dependencies for pyGTK.

这篇关于安装Python GTK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆