Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tails - Package 'python3-tk' has no installation candidate

I'm currently experimenting with different Linux distributions and I'm trying to get some of my apps to run on the newest Tails distro. For that I need the tkinter library for Python3.

Sadly, importing tkinter in python3 doesn't work and trying to install it via

sudo apt-get install python3-tk

gives the following result:

Reading package lists... Done
Building dependecy tree
Reading state information... Done
Package python3-tk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: package 'python3-tk' has no installation candidate

I'd really appreciate any advice that would help me to either install tkinter or at least run my app (maybe by including the tkinter lib in my project, somehow?)

like image 571
Toonfish Avatar asked Apr 11 '16 15:04

Toonfish


People also ask

How do I install python3 TK on Windows?

The simplest method to install Tkinter in a Windows environment is to download and install ActivePython 3.8 from here. Alternatively, you can create and activate a Conda environment with Python 3.7 or greater that is integrated with the latest version of Tkinter.

What is python3 TK?

Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit. Creating a GUI application using Tkinter is an easy task.

Is Tkinter installed?

Tkinter comes pre-installed with the Python installer binaries for Mac OS X and the Windows platform. So if you install Python from the official binaries for Mac OS X or Windows platform, you are good to go with Tkinter. For Debian versions of Linux you have to install it manually by using the following commands.

Does Tkinter work on Ubuntu?

Packages for Tkinter are available in the repositories of most distributions. In Ubuntu you can install either from the command line or via "Software Center".


1 Answers

Try typing these :

sudo apt-get update
sudo apt-get install python3-tk
like image 189
Badr El Hiouel Avatar answered Nov 11 '22 21:11

Badr El Hiouel