Kivy、Eclipse 和 PyDev(也是 PyPy)

2022-01-15 00:00:00 kivy pydev pypy eclipse

根据这篇文章:https://groups.google.com/forum/?fromgroups#!topic/kivy-users/n7c3thksnzg,可以通过 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 可执行文件
  • 在库选项卡下添加 kivy 包文件夹(仍在 Python Interpreters Prefs 部分,确保选择 kivy python 解释器)
  • 在环境选项卡中,添加以下三个键值对:(假设:kivy 根是 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:kivygstreameregistry.bin

      GST_REGISTRY = c:kivygstreameregistry.bin

      GST_PLUGIN_PATH = c:kivygstreamerlibgstreamer-0.10

      GST_PLUGIN_PATH = c:kivygstreamerlibgstreamer-0.10

      PATH = c:kivy;c:kivyPython;c:kivygstreamerin;c:kivyMinGWin;%PATH%

      PATH = c:kivy;c:kivyPython;c:kivygstreamerin;c:kivyMinGWin;%PATH%

      在创建一个打算使用 kivy 的新项目时,只需指定适当的解释器,您就可以开始使用了

      When creating a new project intended to use kivy, just specify the appropriate interpreter and you should be ready to go

相关文章