nieselfriem
Anmeldungsdatum: 1. November 2007
Beiträge: 71
|
Hallo zusammen, ich möchte Python 3.12 nutzen und habe es entsprechend dieser Anleitung installiert: Link zur Anleitung. Beim Versuch, die Bibliothek pyjks zu installieren, scheitert es daran, dass pip für Python 3.12 nicht vorhanden ist. Ich wollte dies mit folgendem Befehl nachholen: | python3.12 -m pip --version
|
| Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3/dist-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
...
from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils'
|
Dabei erhalte ich jedoch die Fehlermeldung, dass distutils fehlt. Eine Installation über apt ist nicht möglich, da ich nur python3.11-distutils finden kann.
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53 | ....
python3-pkginfo/jammy 1.8.2-1 all
Python 3.x module to query metadata from packages
python3-pyqt-distutils/jammy 0.7.3-2 all
distutils extension to work with PyQt applications and UI files (Python3)
python3-pytest-runner/jammy 2.11.1-1.2 all
Invoke py.test as distutils command with dependency resolution - Python 3.x
python3-setuptools/jammy-updates,jammy-security,now 59.6.0-1.2ubuntu0.22.04.2 all [Installiert,automatisch]
Erweiterungen für die Python3 Distutils
python3-setuptools-whl/jammy-updates,jammy-security 59.6.0-1.2ubuntu0.22.04.2 all
Python Distutils Enhancements (wheel package)
python3-sip-dev/jammy 4.19.25+dfsg-3build1 amd64
Python 3/C++ bindings generator development files
python3-stdeb/jammy 0.10.0-1 all
Python to Debian source package conversion plugins for distutils
python3-stsci.distutils/jammy 0.3.7-5 all
Python3 packaging utilities for STScI's packages
python3-versioneer/jammy 0.21-1 all
determine version from repository tag
python3.10-full/jammy-updates,jammy-security 3.10.12-1~22.04.9 amd64
Python Interpreter with complete class library (version 3.10)
python3.11-full/jammy 3.11.11-1+jammy1 amd64
Python Interpreter with complete class library (version 3.11)
python3.7-distutils/jammy 3.7.17-1+jammy1 all
distutils package for Python (version 3.7)
python3.7-full/jammy 3.7.17-1+jammy1 amd64
Python Interpreter with complete class library (version 3.7)
python3.8-distutils/jammy 3.8.20-1+jammy1 all
distutils package for Python (version 3.8)
python3.8-full/jammy 3.8.20-1+jammy1 amd64
Python Interpreter with complete class library (version 3.8)
python3.9-distutils/jammy 3.9.21-1+jammy1 all
distutils package for Python (version 3.9)
python3.9-full/jammy 3.9.21-1+jammy1 amd64
Python Interpreter with complete class library (version 3.9)
|
Hat jemand eine Lösung für dieses Problem? Vielen Dank!
|
schwarzheit
Supporter
Anmeldungsdatum: 31. Dezember 2007
Beiträge: 3749
|
|
Ruth-Wies
Anmeldungsdatum: 12. April 2023
Beiträge: 265
Wohnort: im Exil ;(
|
disktuils vs. distutils 😉 😇 Mir erschließt sich zwar nicht, warum man nicht Ubuntu 24.04 verwendet, wenn man Python 3.12 haben möchte, aber das ändert nichts an der Tatsache, dass es kein Modul distutils mehr gibt; wie schon lange angekündigt:
|
nieselfriem
(Themenstarter)
Anmeldungsdatum: 1. November 2007
Beiträge: 71
|
Hallochen
Link zur Anleitung fehlt
https://www.debugpoint.com/install-python-3-12-ubuntu/
Bitte kopiere Terminalausgaben immer vollständig von Anfangs- bis einschliesslich Endprompt inkl. Befehlseingabe in einen
Ok ich wollte nur das wichtigste Ausgeben aber das ist kein problem 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
27 | #> python3.12 -m pip --version
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3/dist-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "/usr/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 23, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "/usr/lib/python3/dist-packages/pip/_internal/cli/parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "/usr/lib/python3/dist-packages/pip/_internal/configuration.py", line 26, in <module>
from pip._internal.utils.logging import getLogger
File "/usr/lib/python3/dist-packages/pip/_internal/utils/logging.py", line 27, in <module>
from pip._internal.utils.misc import ensure_dir
File "/usr/lib/python3/dist-packages/pip/_internal/utils/misc.py", line 39, in <module>
from pip._internal.locations import get_major_minor_version
File "/usr/lib/python3/dist-packages/pip/_internal/locations/__init__.py", line 14, in <module>
from . import _distutils, _sysconfig
File "/usr/lib/python3/dist-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
from distutils.cmd import Command as Distutils
#>
|
suchen nach distutils 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99 | #> apt search distutils
Sortierung… Fertig
Volltextsuche… Fertig
pypy-setuptools/jammy-updates,jammy-security 44.1.1-1.2ubuntu0.22.04.1 all
PyPy Distutils Enhancements
python-pbr-doc/jammy 5.8.0-0ubuntu1 all
Injektion nützlichen und vernünftigen Standardverhaltens in setuptools - Dokumentation
python-pkginfo-doc/jammy 1.8.2-1 all
Python module to query metadata from packages documentation
python-setuptools/jammy-updates,jammy-security 44.1.1-1.2ubuntu0.22.04.1 all
Erweiterungen für die Python Distutils
python-setuptools-doc/jammy-updates,jammy-security 59.6.0-1.2ubuntu0.22.04.2 all
Erweiterungen für die Python Distutils (Dokumentation)
python2-setuptools-whl/jammy-updates,jammy-security 44.1.1-1.2ubuntu0.22.04.1 all
Python Distutils Enhancements (python 2.7 wheel package)
python3-bdist-nsi/jammy 0.1.5-2 all
Create NSIS windows installers for Python modules (Python 3)
python3-d2to1/jammy 0.2.12-2 all
Python3-Unterstützung für distutils2-ähnliche setup.cfg-Dateien als Paket-Meta-Daten
python3-distlib/jammy 0.3.4-1 all
low-level components of python distutils2/packaging
python3-distutils/jammy-updates,jammy-security,now 3.10.8-1~22.04 all [Installiert,automatisch]
Distutils-Paket für Python 3.x
python3-distutils-extra/jammy 2.45 all
enhancements to the Python3 build system
python3-fswrap/jammy 1.0.1-3 all
unified object oriented interface to file system objects (Python 3)
python3-full/jammy-updates 3.10.6-1~22.04.1 amd64
Python-Standardinterpreter mit vollständiger Klassenbibliothek
python3-jcc/jammy 3.6-1build5 amd64
generator for a Python extension from Java classes (Python 3)
python3-pbr/jammy 5.8.0-0ubuntu1 all
inject useful and sensible default behaviors into setuptools - Python 3.x
python3-pkginfo/jammy 1.8.2-1 all
Python 3.x module to query metadata from packages
python3-pyqt-distutils/jammy 0.7.3-2 all
distutils extension to work with PyQt applications and UI files (Python3)
python3-pytest-runner/jammy 2.11.1-1.2 all
Invoke py.test as distutils command with dependency resolution - Python 3.x
python3-setuptools/jammy-updates,jammy-security,now 59.6.0-1.2ubuntu0.22.04.2 all [Installiert,automatisch]
Erweiterungen für die Python3 Distutils
python3-setuptools-whl/jammy-updates,jammy-security 59.6.0-1.2ubuntu0.22.04.2 all
Python Distutils Enhancements (wheel package)
python3-sip-dev/jammy 4.19.25+dfsg-3build1 amd64
Python 3/C++ bindings generator development files
python3-stdeb/jammy 0.10.0-1 all
Python to Debian source package conversion plugins for distutils
python3-stsci.distutils/jammy 0.3.7-5 all
Python3 packaging utilities for STScI's packages
python3-versioneer/jammy 0.21-1 all
determine version from repository tag
python3.10-full/jammy-updates,jammy-security 3.10.12-1~22.04.9 amd64
Python Interpreter with complete class library (version 3.10)
python3.11-full/jammy 3.11.11-1+jammy1 amd64
Python Interpreter with complete class library (version 3.11)
python3.7-distutils/jammy 3.7.17-1+jammy1 all
distutils package for Python (version 3.7)
python3.7-full/jammy 3.7.17-1+jammy1 amd64
Python Interpreter with complete class library (version 3.7)
python3.8-distutils/jammy 3.8.20-1+jammy1 all
distutils package for Python (version 3.8)
python3.8-full/jammy 3.8.20-1+jammy1 amd64
Python Interpreter with complete class library (version 3.8)
python3.9-distutils/jammy 3.9.21-1+jammy1 all
distutils package for Python (version 3.9)
python3.9-full/jammy 3.9.21-1+jammy1 amd64
Python Interpreter with complete class library (version 3.9)
#>
|
Es scheint, dass die Aussage von Ruth-Wies zutrifft: distutils ist nicht mehr verfügbar. Mir erschließt sich zwar nicht, warum man nicht Ubuntu 24.04 verwendet, wenn man Python 3.12 haben möchte
Mein Firmenrechner läuft auf Ubuntu 22.04. Ich benötige jedoch Python 3.12, weil ein Pythonskript in einem Container eine Funktion verwendet, die erst ab dieser Version verfügbar ist. VG niesel
|
Ruth-Wies
Anmeldungsdatum: 12. April 2023
Beiträge: 265
Wohnort: im Exil ;(
|
nieselfriem schrieb: Es scheint, dass die Aussage von Ruth-Wies zutrifft: distutils ist nicht mehr verfügbar.
Es scheint? Ich habe die Ankündigung verlinkt und da steht auch drin, was man stattdessen verwenden kann. Man™ müsste es nur lesen. 😇
PS: Wenn das Programm einerseits Python 3.12 erfordert, aber andererseits nicht berücksichtigt, dass es dort kein distutils mehr gibt, scheint dies nicht viel zu taugen.
|