Join GitHub today
Setting Up Kivy with various popular IDE's
List of Content
- Setting up Kivy with PyCharm on Windows
- Setting up Kivy with PyCharm on OSX
- KV Lang Auto-completion and Highlighting
- Other IDE's
Setting up Kivy with PyCharm on Windows
As of 1.9.1, Kivy now installs into your normal Python interpreter, so installation on Windows is really straightforward.
- Install Kivy for Windows according to these instructions.
- Create/open your project in PyCharm
That's normally all that is required. If you have multiple Python interpreters, you may need to select the one that you installed Kivy into.
- File -> Settings -> Project -> Project Interpreter
- Click the settings symbol to the right of the project interpreter drop down and select the appropriate interpreter.
That's it. Enjoy Kivy.
Setting up Kivy with Pycharm on OSX
We recommend installing and using homebrew to install Kivy. This is done using the Terminal on your Mac. The instructions here should be typed or pasted into an open terminal command prompt.
Please note that some of these lines are long and should be copied and pasted in one go, even though the page here might show them word-wrapped.
For installation methods other than using brew and pip, please see the instructions on the appropriate websites.
- Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Python 3
brew install python3
or Python 2
brew install python
- Install Kivy (Merging with instructions from: https://kivy.org/docs/installation/installation-osx.html). Note that if you are using Python 2, replace 'pip3' below with 'pip'.
brew install hg sdl sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer
pip3 install --upgrade pip
pip3 install cython
USE_OSX_FRAMEWORKS=0 pip3 install kivy
PyCharm should pick up your default Python interpreter, which now (hopefully) has Kivy installed in it as a module.
You can check what modules you have installed in the settings: File -> Settings -> Project -> Project Interpreter
KV Lang Auto-completion and Highlighting
Xuton has kindly developed a file type extension that gives you full syntax highlighting and auto-completion for KV files.
- Download this file.
- On Pycharm’s main menu, click File -> Import (or Import Settings).
- Select the jar file you just downloaded and PyCharm will present a dialog with filetypes ticked. Click OK.
- Restart PyCharm for the changes to take effect.
- How to use Python Tools for Visual Studio to develop and run Kivy Applications
- How to Set up Wing IDE for Kivy on Windows
- Kv language definition file for gedit
- In the eric6 IDE select the menu item
Plugins->Plugin Repositoryand then select
Project, Kivyand then click on
Download & Installbutton.
- In SynWrite and CudaText editors, Kivy syntax lexer is available, in Addon Manager(s).