問題描述
根據(jù)這篇文章:https://groups.google.com/forum/?fromgroups#!topic/kivy-users/n7c3thksnzg,可以通過 PyDev 使用 Eclipse 作為 Kivy 的 IDE.但是,我不明白說明.誰能詳細(xì)說明如何將 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 機(jī)器上.另外,是否可以使用 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 下添加一個(gè)新的解釋器,指向 kivy 便攜版附帶的 python 可執(zhí)行文件
- 在庫選項(xiàng)卡下添加 kivy 包文件夾(仍在 Python Interpreters Prefs 部分,確保選擇 kivy python 解釋器)
在環(huán)境選項(xiàng)卡中,添加以下三個(gè)鍵值對(duì):(假設(shè):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:kivygstreamer egistry.bin
GST_REGISTRY = c:kivygstreamer egistry.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%
在創(chuàng)建一個(gè)打算使用 kivy 的新項(xiàng)目時(shí),只需指定適當(dāng)?shù)慕忉屍鳎涂梢蚤_始使用了
When creating a new project intended to use kivy, just specify the appropriate interpreter and you should be ready to go
這篇關(guān)于Kivy、Eclipse 和 PyDev(也是 PyPy)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!