[英]Python PGU Library - how do I install it?
I am developing a game in Python with pygame
on Windows 8, and I wanted to add some buttons and stuff. 我正在Windows 8上使用pygame
在Python中开发游戏,我想添加一些按钮和内容。 I found a library called PGU
, but I don't really know how to install it. 我找到了一个名为PGU
的库,但我真的不知道如何安装它。
If somebody can help me adding PGU
to my pygame
, it would be great. 如果有人可以帮助我将PGU
添加到我的pygame
,那就太好了。
I just found the answer. 我才找到答案。 When you download PGU and unzip it, inside the folder there are other two folders named "pgu" and "data". 下载PGU并将其解压缩时,该文件夹中还有另外两个名为“ pgu”和“ data”的文件夹。 Copy them into your project's/program's root folder and you're done! 将它们复制到项目/程序的根文件夹中,就可以完成!
For more information: https://code.google.com/p/pgu/source/browse/trunk/INSTALL.txt?r=21 有关更多信息: https : //code.google.com/p/pgu/source/browse/trunk/INSTALL.txt?r=21
Another way to install PGU is by using pip
. 安装PGU的另一种方法是使用pip
。
Once you have downloaded the .zip file from here , you can proceed as follows: 从此处下载.zip文件后,您可以按照以下步骤操作:
pip install "path/to/file/pgu-0.18.zip
For more info about pip, read the Wikipedia page . 有关pip的更多信息,请阅读Wikipedia页面 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.