问题描述
根据这篇文章:,可以通过PyDev将Eclipse用作Kivy的IDE。但是,我不明白说明。任何人都可以详细说明如何将Kivy与Eclipse连接。
According to this post: https://groups.google.com/forum/?fromgroups#!topic/kivy-users/n7c3thksnzg, it is possible to use Eclipse as an IDE for Kivy through PyDev. However, I didn't understand the instructions. Can anyone please elaborate on how to connect Kivy with Eclipse.
注意:我在Windows机器上。此外,是否可以使用PyPy而不是Python解释器?
Note: I'm on a Windows machine. Also, is it possible to use PyPy instead of the Python Interpreter?
谢谢〜!
推荐答案
在Windows xp / 7上使用Kivy与Pydev
- 在Window / Preferences / PyDev / Interpreter-Python下添加新的解释器指向可移植的可执行文件(
- 在库标签下添加kivy包文件夹(仍然在Python Interpreters Prefs部分,确保选择了kivy python解释器)
-
在环境选项卡中,添加以下三个键值对:
(假设:kivy root是c:\kivy)Using Kivy with Pydev on Windows xp/7
- Under Window/Preferences/PyDev/Interpreter-Python add a new interpreter pointing to the python executable which ships with kivy portable
- add kivy package folder under libraries tab (still in Python Interpreters Prefs section making sure the kivy python interpreter is selected)
In Environment tab, add the following three key-value pairs:(assumptions: kivy root is c:\kivy)
GST_REGISTRY = c:\kivy\gstreamer\registry.bin
GST_REGISTRY = c:\kivy\gstreamer\registry.bin
GST_PLUGIN_PATH = c:\kivy\gstreamer\lib\gstreamer -0.10
GST_PLUGIN_PATH = c:\kivy\gstreamer\lib\gstreamer-0.10
PATH = c:\kivy; c:\kivy\Python; c:\kivy\gstreamer\bin; c:\ kivy\MinGW\bin;%PATH%
PATH = c:\kivy;c:\kivy\Python;c:\kivy\gstreamer\bin;c:\kivy\MinGW\bin;%PATH%
创建新项目时, d使用kivy,只需指定相应的解释器,你应该准备好去
When creating a new project intended to use kivy, just specify the appropriate interpreter and you should be ready to go
这篇关于Kivy,Eclipse和PyDev(也是PyPy)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!