Install kivy on linux

Install kivy on linux

Copy raw contents

Installation on Linux

To install Kivy on Linux using pip , please follow the main :ref:`installation guide ` . Otherwise, continue to the :ref:`PPA instructions below
` .

Following, are additional information linked to from some of the steps in the main :ref:`pip installation guide ` , specific to Linux.

Python and python-pip must be installed from the package manager:

You will likely need to do this preliminary step which installs the rpmfusion-free repository unless you have some other 3rd-party repo installed which has the required packages. See rpmfusion.org for complete installation instructions, but only the rpmfusion-free repo is needed for acquiring kivy dependencies (though rpmfusion-nonfree is recommended by rpm fusion installation instructions) as shown in this step.

After you ensure that a 3rd-party repository containing any packages that dnf is otherwise unable to find, continue installing dependencies:

Source installation Dependencies

To install Kivy from source, please follow the installation guide until you reach the :ref:`Kivy install step ` and then install the dependencies below before continuing. Additionally, if you’d like to be able to use the x11 window backend do:

Using software packages (PPA etc.)

Ubuntu / Kubuntu / Xubuntu / Lubuntu (Saucy and above)

Add one of the PPAs as you prefer

stable builds: $ sudo add-apt-repository ppa:kivy-team/kivy
nightly builds: $ sudo add-apt-repository ppa:kivy-team/kivy-daily

$ sudo apt-get update

Python3 — python3-kivy: $ sudo apt-get install python3-kivy
optionally the gallery of Examples — kivy-examples: $ sudo apt-get install kivy-examples

Debian (Jessie or newer)

Add one of the PPAs to your sources.list in apt manually or via Synaptic

stable builds: deb http://ppa.launchpad.net/kivy-team/kivy/ubuntu xenial main
daily builds: deb http://ppa.launchpad.net/kivy-team/kivy-daily/ubuntu xenial main

Notice: Wheezy is not supported — You’ll need to upgrade to Jessie at least!

Add the GPG key to your apt keyring by executing

sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

Refresh your package list and install python-kivy and/or python3-kivy and optionally the examples found in kivy-examples

  1. Find out on which Ubuntu release your installation is based on, using this overview.
  2. Continue as described for Ubuntu above, depending on which version your installation is based on.

Find out which version of the distribution you are running and use the table below to find out on which Ubuntu LTS it is based.

Bodhi 1: Ubuntu 10.04 LTS aka Lucid (No packages, just manual install)
Bodhi 2: Ubuntu 12.04 LTS aka Precise
Bodhi 3: Ubuntu 14.04 LTS aka Trusty
Bodhi 4: Ubuntu 16.04 LTS aka Xenial
  1. To install kivy go to http://software.opensuse.org/package/python-Kivy and use the «1 Click Install» for your openSuse version. You might need to make the latest kivy version appear in the list by clicking on «Show unstable packages». We prefer to use packages by » devel:languages:python».
  2. If you would like access to the examples, please select python-Kivy-examples in the upcoming installation wizard.

There is a kivy ebuild (kivy stable version)

available USE-flags are:

cairo: Standard flag, let kivy use cairo graphical libraries. camera: Install libraries needed to support camera. doc: Standard flag, will make you build the documentation locally. examples: Standard flag, will give you kivy examples programs. garden: Install garden tool to manage user maintained widgets. gstreamer: Standard flag, kivy will be able to use audio/video streaming libraries. spell: Standard flag, provide enchant to use spelling in kivy apps.

Читайте также:  Как переключить windows при загрузке

When you app starts, Kivy uses Mtdev to scan for available multi-touch devices to use for input. Access to these devices is typically restricted to users or groups with the appropriate permissions.

If you do not have access to these devices, Kivy will log an error or warning specifying these devices, normally something like:

In order to use these devices, you can add your user to a group that has the required permissions. For example, in Ubuntu, you can add the user to the ‘input’ group:

Note that you need to log out then back in again for these permissions to be applied.

Источник

Installation on LinuxВ¶

To install Kivy on Linux using pip , please follow the main installation guide . Otherwise, continue to the PPA instructions below .

Installation componentsВ¶

Following, are additional information linked to from some of the steps in the main pip installation guide , specific to Linux.

Installing PythonВ¶

Python and python-pip must be installed from the package manager:

UbuntuВ¶

FedoraВ¶

You will likely need to do this preliminary step which installs the rpmfusion-free repository unless you have some other 3rd-party repo installed which has the required packages. See rpmfusion.org for complete installation instructions, but only the rpmfusion-free repo is needed for acquiring kivy dependencies (though rpmfusion-nonfree is recommended by rpm fusion installation instructions) as shown in this step.

After you ensure that a 3rd-party repository containing any packages that dnf is otherwise unable to find, continue installing dependencies:

Source installation DependenciesВ¶

To install Kivy from source, please follow the installation guide until you reach the Kivy install step and then install the dependencies below before continuing. Additionally, if you’d like to be able to use the x11 window backend do:

UbuntuВ¶

FedoraВ¶

Using software packages (PPA etc.)В¶

Ubuntu / Kubuntu / Xubuntu / Lubuntu (Saucy and above)В¶

Add one of the PPAs as you prefer

$ sudo add-apt-repository ppa:kivy-team/kivy

$ sudo add-apt-repository ppa:kivy-team/kivy-daily

$ sudo apt-get update

$ sudo apt-get install python3-kivy

optionally the gallery of Examples — kivy-examples

$ sudo apt-get install kivy-examples

Debian (Jessie or newer)В¶

Add one of the PPAs to your sources.list in apt manually or via Synaptic

Notice: Wheezy is not supported — You’ll need to upgrade to Jessie at least!

Add the GPG key to your apt keyring by executing

sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

Refresh your package list and install python-kivy and/or python3-kivy and optionally the examples found in kivy-examples

Linux MintВ¶

Find out on which Ubuntu release your installation is based on, using this overview.

Continue as described for Ubuntu above, depending on which version your installation is based on.

Bodhi LinuxВ¶

Find out which version of the distribution you are running and use the table below to find out on which Ubuntu LTS it is based.

Ubuntu 10.04 LTS aka Lucid (No packages, just manual install)

Ubuntu 12.04 LTS aka Precise

Ubuntu 14.04 LTS aka Trusty

Ubuntu 16.04 LTS aka Xenial

Continue as described for Ubuntu above, depending on which version your installation is based on.

OpenSuSEВ¶

To install kivy go to http://software.opensuse.org/package/python-Kivy and use the “1 Click Install” for your openSuse version. You might need to make the latest kivy version appear in the list by clicking on “Show unstable packages”. We prefer to use packages by ” devel:languages:python”.

If you would like access to the examples, please select python-Kivy-examples in the upcoming installation wizard.

GentooВ¶

There is a kivy ebuild (kivy stable version)

available USE-flags are:

cairo: Standard flag, let kivy use cairo graphical libraries. camera: Install libraries needed to support camera. doc: Standard flag, will make you build the documentation locally. examples: Standard flag, will give you kivy examples programs. garden: Install garden tool to manage user maintained widgets. gstreamer: Standard flag, kivy will be able to use audio/video streaming libraries. spell: Standard flag, provide enchant to use spelling in kivy apps.

Читайте также:  Прошивка биоса nvidia windows

Device permissionsВ¶

When you app starts, Kivy uses Mtdev to scan for available multi-touch devices to use for input. Access to these devices is typically restricted to users or groups with the appropriate permissions.

If you do not have access to these devices, Kivy will log an error or warning specifying these devices, normally something like:

In order to use these devices, you can add your user to a group that has the required permissions. For example, in Ubuntu, you can add the user to the ‘input’ group:

Note that you need to log out then back in again for these permissions to be applied.

© Copyright 2010, The Kivy Authors Revision 6430e135 .

Источник

Installation on Linux¶

To install Kivy on Linux using pip , please follow the main installation guide . Otherwise, continue to the PPA instructions below .

Installation components¶

Following, are additional information linked to from some of the steps in the main pip installation guide , specific to Linux.

Installing Python¶

Python and python-pip must be installed from the package manager:

Ubuntu¶

Fedora¶

You will likely need to do this preliminary step which installs the rpmfusion-free repository unless you have some other 3rd-party repo installed which has the required packages. See rpmfusion.org for complete installation instructions, but only the rpmfusion-free repo is needed for acquiring kivy dependencies (though rpmfusion-nonfree is recommended by rpm fusion installation instructions) as shown in this step.

Download the appropriate wheel for your Python version.

Install it as above but with pip install wheel-name where wheel-name is the name of the file, instead.

After you ensure that a 3rd-party repository containing any packages that dnf is otherwise unable to find, continue installing dependencies:

Source installation Dependencies¶

To install Kivy from source, please follow the installation guide until you reach the Kivy install step and then install the dependencies below before continuing. Additionally, if you’d like to be able to use the x11 window backend do:

Using software packages (PPA etc.)¶

Using software packages (PPA etc.)¶

Ubuntu / Kubuntu / Xubuntu / Lubuntu (Saucy and above) >>>>>> master

Add one of the PPAs as you prefer

$ sudo add-apt-repository ppa:kivy-team/kivy

$ sudo add-apt-repository ppa:kivy-team/kivy-daily

$ sudo apt-get update

$ sudo apt-get install python3-kivy

optionally the gallery of Examples — kivy-examples

$ sudo apt-get install kivy-examples

Add one of the PPAs to your sources.list in apt manually or via Synaptic

Notice: Wheezy is not supported — You’ll need to upgrade to Jessie at least!

Add the GPG key to your apt keyring by executing

sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

Refresh your package list and install python-kivy and/or python3-kivy and optionally the examples found in kivy-examples

Find out on which Ubuntu release your installation is based on, using this overview.

Continue as described for Ubuntu above, depending on which version your installation is based on.

Find out which version of the distribution you are running and use the table below to find out on which Ubuntu LTS it is based.

Ubuntu 10.04 LTS aka Lucid (No packages, just manual install)

Ubuntu 12.04 LTS aka Precise

Ubuntu 14.04 LTS aka Trusty

Ubuntu 16.04 LTS aka Xenial

Continue as described for Ubuntu above, depending on which version your installation is based on.

To install kivy go to http://software.opensuse.org/package/python-Kivy and use the “1 Click Install” for your openSuse version. You might need to make the latest kivy version appear in the list by clicking on “Show unstable packages”. We prefer to use packages by ” devel:languages:python”.

If you would like access to the examples, please select python-Kivy-examples in the upcoming installation wizard.

There is a kivy ebuild (kivy stable version)

available USE-flags are:

cairo: Standard flag, let kivy use cairo graphical libraries. camera: Install libraries needed to support camera. doc: Standard flag, will make you build the documentation locally. examples: Standard flag, will give you kivy examples programs. garden: Install garden tool to manage user maintained widgets. gstreamer: Standard flag, kivy will be able to use audio/video streaming libraries. spell: Standard flag, provide enchant to use spelling in kivy apps.

Читайте также:  Kali linux рабочие столы

Device permissions¶

When you app starts, Kivy uses Mtdev to scan for available multi-touch devices to use for input. Access to these devices is typically restricted to users or groups with the appropriate permissions.

If you do not have access to these devices, Kivy will log an error or warning specifying these devices, normally something like:

In order to use these devices, you can add your user to a group that has the required permissions. For example, in Ubuntu, you can add the user to the ‘input’ group:

Note that you need to log out then back in again for these permissions to be applied. >>>>>>> master

Источник

Installation on Linux¶

Using software packages¶

For installing distribution relative packages .deb/.rpm/…

Ubuntu / Kubuntu / Xubuntu / Lubuntu (Saucy and above)¶

Add one of the PPAs as you prefer

stable builds: $ sudo add-apt-repository ppa:kivy-team/kivy
nightly builds: $ sudo add-apt-repository ppa:kivy-team/kivy-daily

$ sudo apt-get update

Python2 — python-kivy:
$ sudo apt-get install python-kivy
Python3 — python3-kivy:
$ sudo apt-get install python3-kivy
optionally the examples — kivy-examples:
$ sudo apt-get install kivy-examples

Debian (Jessie or newer)¶

Add one of the PPAs to your sources.list in apt manually or via Synaptic

stable builds: deb http://ppa.launchpad.net/kivy-team/kivy/ubuntu xenial main
daily builds: deb http://ppa.launchpad.net/kivy-team/kivy-daily/ubuntu xenial main

Notice: Wheezy is not supported — You’ll need to upgrade to Jessie at least!

Add the GPG key to your apt keyring by executing

sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

Refresh your package list and install python-kivy and/or python3-kivy and optionally the examples found in kivy-examples

Linux Mint¶

  1. Find out on which Ubuntu release your installation is based on, using this overview.
  2. Continue as described for Ubuntu above, depending on which version your installation is based on.

Bodhi Linux¶

Find out which version of the distribution you are running and use the table below to find out on which Ubuntu LTS it is based.

Bodhi 1: Ubuntu 10.04 LTS aka Lucid (No packages, just manual install)
Bodhi 2: Ubuntu 12.04 LTS aka Precise
Bodhi 3: Ubuntu 14.04 LTS aka Trusty
Bodhi 4: Ubuntu 16.04 LTS aka Xenial

OpenSuSE¶

  1. To install kivy go to http://software.opensuse.org/package/python-Kivy and use the “1 Click Install” for your openSuse version. You might need to make the latest kivy version appear in the list by clicking on “Show unstable packages”. We prefer to use packages by ” devel:languages:python”.
  2. If you would like access to the examples, please select python-Kivy-examples in the upcoming installation wizard.

Gentoo¶

There is a kivy ebuild (kivy stable version)

available USE-flags are:

cairo: Standard flag, let kivy use cairo graphical libraries. camera: Install libraries needed to support camera. doc: Standard flag, will make you build the documentation locally. examples: Standard flag, will give you kivy examples programs. garden: Install garden tool to manage user maintained widgets. gstreamer: Standard flag, kivy will be able to use audio/video streaming libraries. spell: Standard flag, provide enchant to use spelling in kivy apps.

Other¶

For other distros, we recommend installing via pip as shown below.

Installation in a Virtual Environment¶

Common dependencies¶

Cython¶

Different versions of Kivy have only been tested up to a certain Cython version. It may or may not work with a later version.

Kivy Cython
1.8 0.20.2
1.9 0.21.2
1.9.1 0.23
1.10.0 0.25.2

Dependencies with SDL2¶

Ubuntu example¶

In the following command use “python” and “python-dev” for Python 2, or “python3” and “python3-dev” for Python 3.

Note: Depending on your Linux version, you may receive error messages related to the “ffmpeg” package. In this scenario, use “libav-tools ” in place of “ffmpeg ” (above), or use a PPA (as shown below):

Источник

Оцените статью