Installieren von Python3.10 auf Debian: Stretch-Slim-Bild?Python

Python-Programme
Anonymous
 Installieren von Python3.10 auf Debian: Stretch-Slim-Bild?

Post by Anonymous »

Ich habe eine Docker-Datei, in der das Basisbild auf Debian eingestellt ist: Stretch-Slim. Die Standardversion von Python3 ist in diesem Bild Python3.5.RUN python3 -V
RUN which python3
< /code>
Ausgabe ist: < /p>
#35 [linux/amd64 base-os 14/18] RUN python3 -V
#35 0.132 Python 3.5.3
< /code>
Ich versuche, Python3.10 in diesem Bild verfügbar zu haben, und habe ein paar Dinge ausprobiert.
RUN wget https://www.python.org/ftp/python/3.10. ... 3.10.0.tgz
RUN tar -xzf Python-3.10.0.tgz
RUN cd Python-3.10.0 && ./configure --prefix=/usr/local \
--enable-optimizations \
--with-lto \
--with-dbmliborder=bdb:gdbm \
--with-ensurepip \
'CFLAGS=-g -fstack-protector-strong -Wformat -Werror=format-security' \
LDFLAGS="-Wl,-z,relro" \
CPPFLAGS=-D_FORTIFY_SOURCE=2 && make -j 4 && make altinstall
RUN rm -rf Python-3.10.0.tgz
RUN rm -rf Python-3.10.0
< /code>
Dieser Ansatz 1 Fehler mit < /p>
#44 255.8 Traceback (most recent call last):
#44 255.8 File "", line 570, in _get_decompress_func
#44 255.8 ModuleNotFoundError: No module named 'zlib'
Installing zlib again gives more errors and ends up in never ending problem.
< /code>
Ich habe versucht, einige Links durchzulesen und sieht so aus, als hätten viele dieses Problem konfrontiert, aber es wurde nirgendwo eine klare Lösung aufgeführt. Kann einige Experten seine Gedanken darüber darüber werfen, was für Python3.10 benötigt wird?>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post