奇异果花园失败并显示错误 [英] Kivy Garden fails with error

查看:346
本文介绍了奇异果花园失败并显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将预打包的Kivy zip文件下载到Windows 8.1机器上,并使用pip安装了Kivy-Garden(在运行kivy.bat之后).但是,我无法成功使用Kivy-Garden.我尝试了以下命令:

I have downloaded the prepackaged Kivy zip file onto a Windows 8.1 machine and installed Kivy-Garden using pip (after running kivy.bat). However, I have been unable to successfully use Kivy-Garden. I have attempted the following commands:

garden install graph
garden list

但是,它们都不起作用.它们都导致以下错误:

However, neither of them work. They both result in the following error:

Traceback (most recent call last):
  File "c:\kivy\Python27\Scripts\garden", line 5, in <module>
    pkg_resources.run_script('Kivy-Garden==0.1.1', 'garden')
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 483, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 1335, in run_script
    raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'garden'

这是否表示安装错误?我该如何解决?

Does this indicate a bad installation? How might I fix it?

推荐答案

适用于Windows的Kivy捆绑了所有要运行的先决条件,因为某些先决条件很难在Windows中安装,因此它不使用已安装的python.

Kivy for windows comes in a bundle with all the prerequisites to run, since some are hard to install in windows, so it's not using you installed python.

您应该转到kivy安装文件夹,在其中找到python文件夹,其中是用于kivy的python描述符,您可以运行该python exe,或者使用pip或easy install(我不记住是否两者都有),就像我看到的使用PyCharm进行编程的额外建议一样,它很容易安装python模块和代码,我自己使用了从PyCharm Gui安装的SqlAlchemy(以前的配置在这里

You should go to your kivy installation folder, inside you'll find the python folder, inside is the python descriptor used for kivy, you can run that python exe, or use pip or easy install (i don't remember if both), like an extra advice i could saw to use PyCharm to program, it's easy to install the python modules and code, i have it myself with SqlAlchemy instaled from the PyCharm Gui (previous config here Configure PyCharm and Kivy).

另一方面,您可以配置kivy使其与已安装的python一起运行(此处的说明

In the other hand you can configure kivy to run with your installed python (instructions here Kivy with an installed Python in Windows) i haven't tried myself since i use the same python included in kivy with no problems

这篇关于奇异果花园失败并显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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