by Anonymous » 22 Aug 2025, 09:16
Ich versuche es, die neueste Python 3.12.0 in Fedora 38 mit Pyenv zu installieren. Der Befehl ist pyenv install 3.12.0
Ich werde unter dem Fehler-
~ pyenv install 3.12.0
Downloading Python-3.12.0.tar.xz...
-> https://www.python.org/ftp/python/3.12. ... 2.0.tar.xz
Installing Python-3.12.0...
Traceback (most recent call last):
File "", line 1, in
File "/home/raj/.pyenv/versions/3.12.0/lib/python3.12/tkinter/__init__.py", line 38, in
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_tkinter'
WARNING: The Python tkinter extension was not compiled and GUI subsystem has been detected. Missing the Tk toolkit?
Installed Python-3.12.0 to /home/raj/.pyenv/versions/3.12.0
< /code>
Ich habe auch TKinter in Fedora installiert, aber seine Version ist 3.11.6.Code: Select all
~ sudo dnf install python3-tkinter -y
Last metadata expiration check: 1:29:18 ago on Tue 17 Oct 2023 09:30:15 PM PDT.
Package python3-tkinter-3.11.6-1.fc38.x86_64 is already installed.
Dependencies resolved.
Wie kann ich diesen Fehler beheben?
Code: Select all
~ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 38 (Thirty Eight)
Release: 38
Codename: ThirtyEight
Pyenv-Version [/b]
Ich versuche es, die neueste Python 3.12.0 in Fedora 38 mit Pyenv zu installieren. Der Befehl ist pyenv install 3.12.0
[b] Ich werde unter dem Fehler-
~ pyenv install 3.12.0
Downloading Python-3.12.0.tar.xz...
-> https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz
Installing Python-3.12.0...
Traceback (most recent call last):
File "", line 1, in
File "/home/raj/.pyenv/versions/3.12.0/lib/python3.12/tkinter/__init__.py", line 38, in
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_tkinter'
WARNING: The Python tkinter extension was not compiled and GUI subsystem has been detected. Missing the Tk toolkit?
Installed Python-3.12.0 to /home/raj/.pyenv/versions/3.12.0
< /code>
Ich habe auch TKinter in Fedora installiert, aber seine Version ist 3.11.6.[code] ~ sudo dnf install python3-tkinter -y
Last metadata expiration check: 1:29:18 ago on Tue 17 Oct 2023 09:30:15 PM PDT.
Package python3-tkinter-3.11.6-1.fc38.x86_64 is already installed.
Dependencies resolved.
[/code]
Wie kann ich diesen Fehler beheben?[code]~ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 38 (Thirty Eight)
Release: 38
Codename: ThirtyEight
[/code]
Pyenv-Version [/b]
[code]~ pyenv --version
pyenv 2.3.30
[/code]