Mein Python tk funktioniert nicht. Ich habe das USE-Flag tk in die /etc/portage/make.conf eingetragen und auch einmal manuell über USE="tk" emerge -av python neu installiert.
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
[michi@localhost ~ $ python
Python 3.9.1 (default, Dec 26 2020, 19:29:42)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tkinter'
>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Tkinter'
>>> import os
>>> os.getcwd()
'/home/michi'
>>> exit()
michi@localhost ~ $ eselect python list
Available Python interpreters, in order of preference:
[1] python3.9
[2] python3.7 (uninstalled)
[3] python3.8 (fallback)
[4] python2.7 (fallback)
michi@localhost ~ $
|
Wo kann der Fehler liegen?