Clone wiki

thonny / Linux

Thonny on Linux

Installing via distribution's package manager

Since July 2017, Raspberry Pi's Raspbian comes with Thonny preinstalled. You may be able to install it on older Raspbians with sudo apt-get install thonny.

NB! We're looking for contributors, who are willing to package Thonny for other distros!

Installing prebuilt Thonny+Python bundles

Thonny and Python bundle should work on these Linuxes or newer:

  • Mint 13 Maya
  • Debian 8 Jessie
  • Ubuntu 12.04 precise
  • Opensuse 13.1
  • Fedora 21
  • CentOS 7.1

It may run on other distros/versions, but the requirement is that the distro should be with glibc-2.15 or newer.

(If you can't install or run bundled Thonny, then try to install Python and Thonny separately.)

Installing

Download the file with .sh extension and run it with bash. Example (don't forget to change the filename):

> cd ~/Downloads
> bash thonny-2.1.11.sh

This script downloads and unpacks suitable installer for your platform and executes it.

Alternative way for installing

If you want more control, then you can do the install steps separately.

Download the file with tar.gz extension. If you have 64-bit Linux, then use file with x86_64 suffix, otherwise use the one with i686 suffix (run uname -m in terminal if you are not sure which you have).

Unpack the file and run the installation script.For example, in Ubuntu command line you could execute following commands:

> tar -zxvf thonny-1.1.0b7-x86_64.tar.gz
> cd thonny
> ./install

This will install Thonny under apps directory in your home directory. If you would like to install to a specific location, then you can specify parent folder for Thonny folder eg:

> sudo ./install /opt

Uninstalling

Excecute the uninstall command shown by the installer, eg.

> sudo /opt/thonny/bin/uninstall

Updated