-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Linux
-
Raspberry Pi OS comes with Thonny preinstalled. If you have removed it and want it back then do
sudo apt install thonny. -
Debian since Stretch:
sudo apt install python3-tk thonny -
Ubuntu since 18.04:
sudo apt install python3-tk thonny -
Fedora since 27:
sudo dnf install python3-tkinter thonny
NB! We're looking for contributors who are willing to package Thonny for other distros!
The Thonny and Python bundle should work on these Linuxes or newer:
- Mint 19 Tricia
- Debian 10 Buster
- Ubuntu 10.04 Bionic
- Opensuse 15.4
- Fedora 28
- CentOS 8.5
It may run on other distros/versions, but the requirement is that the distro should be with glibc-2.27 or newer (it is built on Ubuntu 18.04).
If you want to install the latest bundle with default settings, then execute the following command in the terminal:
bash <(curl -s https://thonny.org/installer-for-linux)
This script downloads and unpacks the installer suitable for your platform and then executes it.
If you want more control, then you can do the installation steps separately.
Download the file with tar.gz extension. If you have 64-bit x86 Linux, then use file with x86_64 suffix, otherwise use the one with i686 suffix. (Run uname -m in the terminal if you are not sure which you have). NB! Since Thonny 4.0 we only provide only 64-bit bundles for x84 Linux!.
Unpack the file and run the installation script. For example, in the Ubuntu command line you could execute the following commands:
> tar -zxvf thonny-1.1.0b7-x86_64.tar.gz
> cd thonny
> ./install
This will install Thonny under the apps directory in your home directory. If you would like to install to a specific location, then you can specify the parent folder for the Thonny folder eg:
> sudo ./install /opt
Execute the uninstall command shown by the installer, eg.
> sudo /opt/thonny/bin/uninstall
See the Linux section in "Separate Install" (and pay attention to the tkinter part!).
Thonny's main developers are not native English speakers. Feel free to create an issue if you spot a grammar or style error in the wiki.